lnrpc 0.11.1 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f179c17848afbfca35a585bd4175f32198d30f7eeba54430d771a17dd447b8a
4
- data.tar.gz: aa07b410912563889eeb1dc753b52ff195364daf72d73fdecd830228cf91e380
3
+ metadata.gz: c75951f225bdf55afcec88b635e02f7677d35c850dce27702fe25713f3b26250
4
+ data.tar.gz: 64ed585674ccba14158abef3af4582ee85434fb9e9dbaf778a8458c085caee40
5
5
  SHA512:
6
- metadata.gz: 7de6549fb6d2e38616f507a9688edab16b23813936e62ad7d77b1f9bea92c6bad4ca956baa322b1d80ca8f76326c787aa06a6dd1bf91cc9a2379500963e1a5e3
7
- data.tar.gz: cff434503e194459df748705e635ad5685202fa347176fc8cce682e291486d079b43069ed4e62c8c446b40b63fcd8a0c81760c93493693e40a51091adc07cb10
6
+ metadata.gz: 5e6d026d4222dd01107fb35540ecc928f604f084d48befc47deb66e96e49fbf336e8863dbe4c6b556cbb243d1d9df7613c3f9a1bd0554492bac369595d3305e0
7
+ data.tar.gz: 83571ca31a4b21524a841cd9f1badd1934e15078b2265667c6bb3e7db2fd344cc451acaad255512803b50e1486f87b5b9e80f2ec713144fe31db544ed58491b6
data/Gemfile.lock CHANGED
@@ -1,43 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lnrpc (0.10.0)
5
- google-protobuf (>= 3.7)
6
- grpc (>= 1.19.0)
4
+ lnrpc (0.11.1)
5
+ google-protobuf (>= 3.12)
6
+ grpc (>= 1.28.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- diff-lcs (1.3)
12
- google-protobuf (3.9.2)
13
- googleapis-common-protos-types (1.0.4)
14
- google-protobuf (~> 3.0)
15
- grpc (1.24.0)
16
- google-protobuf (~> 3.8)
11
+ diff-lcs (1.4.4)
12
+ google-protobuf (3.17.3)
13
+ googleapis-common-protos-types (1.1.0)
14
+ google-protobuf (~> 3.14)
15
+ grpc (1.38.0)
16
+ google-protobuf (~> 3.15)
17
17
  googleapis-common-protos-types (~> 1.0)
18
- rake (13.0.1)
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)
18
+ rake (13.0.6)
19
+ rspec (3.10.0)
20
+ rspec-core (~> 3.10.0)
21
+ rspec-expectations (~> 3.10.0)
22
+ rspec-mocks (~> 3.10.0)
23
+ rspec-core (3.10.1)
24
+ rspec-support (~> 3.10.0)
25
+ rspec-expectations (3.10.1)
26
26
  diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.9.0)
28
- rspec-mocks (3.9.0)
27
+ rspec-support (~> 3.10.0)
28
+ rspec-mocks (3.10.2)
29
29
  diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.9.0)
31
- rspec-support (3.9.0)
30
+ rspec-support (~> 3.10.0)
31
+ rspec-support (3.10.2)
32
32
 
33
33
  PLATFORMS
34
34
  ruby
35
35
 
36
36
  DEPENDENCIES
37
- bundler (~> 1.17)
37
+ bundler (> 2.0)
38
38
  lnrpc!
39
39
  rake (~> 13.0)
40
40
  rspec (~> 3.0)
41
41
 
42
42
  BUNDLED WITH
43
- 1.17.3
43
+ 2.1.4
data/README.md CHANGED
@@ -5,7 +5,7 @@ a [gRPC](https://grpc.io/) client for [LND, the Lightning Network Daemon](https:
5
5
 
6
6
  ## Installation
7
7
 
8
- Note: there is still an GRPC/protobuf [issue with Ruby 2.7](https://github.com/protocolbuffers/protobuf/issues/7070).
8
+ Note: there is still an GRPC/protobuf [issue with Ruby 2.7](https://github.com/protocolbuffers/protobuf/issues/7070).
9
9
  So lnrpc requires Ruby < 2.7.
10
10
 
11
11
  Add this line to your application's Gemfile:
@@ -164,6 +164,8 @@ The files will be stored in `lib/grpc_services`
164
164
 
165
165
  $ ./generate-grpc-service-files.sh
166
166
 
167
+ + Make sure you have the [grpc-tools](https://rubygems.org/gems/grpc-tools) installed
168
+ + Make sure you have the lnd source in your $GOPATH/src folder
167
169
 
168
170
  ## Other resources
169
171
 
@@ -11,7 +11,7 @@ module Autopilotrpc
11
11
  # that can be used when deciding where to open channels.
12
12
  class Service
13
13
 
14
- include GRPC::GenericService
14
+ include ::GRPC::GenericService
15
15
 
16
16
  self.marshal_class_method = :encode
17
17
  self.unmarshal_class_method = :decode
@@ -19,20 +19,20 @@ module Autopilotrpc
19
19
 
20
20
  #
21
21
  # Status returns whether the daemon's autopilot agent is active.
22
- rpc :Status, StatusRequest, StatusResponse
22
+ rpc :Status, ::Autopilotrpc::StatusRequest, ::Autopilotrpc::StatusResponse
23
23
  #
24
24
  # ModifyStatus is used to modify the status of the autopilot agent, like
25
25
  # enabling or disabling it.
26
- rpc :ModifyStatus, ModifyStatusRequest, ModifyStatusResponse
26
+ rpc :ModifyStatus, ::Autopilotrpc::ModifyStatusRequest, ::Autopilotrpc::ModifyStatusResponse
27
27
  #
28
28
  # QueryScores queries all available autopilot heuristics, in addition to any
29
29
  # active combination of these heruristics, for the scores they would give to
30
30
  # the given nodes.
31
- rpc :QueryScores, QueryScoresRequest, QueryScoresResponse
31
+ rpc :QueryScores, ::Autopilotrpc::QueryScoresRequest, ::Autopilotrpc::QueryScoresResponse
32
32
  #
33
33
  # SetScores attempts to set the scores used by the running autopilot agent,
34
34
  # if the external scoring heuristic is enabled.
35
- rpc :SetScores, SetScoresRequest, SetScoresResponse
35
+ rpc :SetScores, ::Autopilotrpc::SetScoresRequest, ::Autopilotrpc::SetScoresResponse
36
36
  end
37
37
 
38
38
  Stub = Service.rpc_stub_class
@@ -10,7 +10,7 @@ module Chainrpc
10
10
  # chain backend by registering notifiers for chain events.
11
11
  class Service
12
12
 
13
- include GRPC::GenericService
13
+ include ::GRPC::GenericService
14
14
 
15
15
  self.marshal_class_method = :encode
16
16
  self.unmarshal_class_method = :decode
@@ -24,7 +24,7 @@ module Chainrpc
24
24
  # A client can specify whether the confirmation request should be for a
25
25
  # particular transaction by its hash or for an output script by specifying a
26
26
  # zero hash.
27
- rpc :RegisterConfirmationsNtfn, ConfRequest, stream(ConfEvent)
27
+ rpc :RegisterConfirmationsNtfn, ::Chainrpc::ConfRequest, stream(::Chainrpc::ConfEvent)
28
28
  #
29
29
  # RegisterSpendNtfn is a synchronous response-streaming RPC that registers an
30
30
  # intent for a client to be notification once a spend request has been spent
@@ -32,7 +32,7 @@ module Chainrpc
32
32
  #
33
33
  # A client can specify whether the spend request should be for a particular
34
34
  # outpoint or for an output script by specifying a zero outpoint.
35
- rpc :RegisterSpendNtfn, SpendRequest, stream(SpendEvent)
35
+ rpc :RegisterSpendNtfn, ::Chainrpc::SpendRequest, stream(::Chainrpc::SpendEvent)
36
36
  #
37
37
  # RegisterBlockEpochNtfn is a synchronous response-streaming RPC that
38
38
  # registers an intent for a client to be notified of blocks in the chain. The
@@ -43,7 +43,7 @@ module Chainrpc
43
43
  # A client can also request a historical backlog of blocks from a particular
44
44
  # point. This allows clients to be idempotent by ensuring that they do not
45
45
  # missing processing a single block within the chain.
46
- rpc :RegisterBlockEpochNtfn, BlockEpoch, stream(BlockEpoch)
46
+ rpc :RegisterBlockEpochNtfn, ::Chainrpc::BlockEpoch, stream(::Chainrpc::BlockEpoch)
47
47
  end
48
48
 
49
49
  Stub = Service.rpc_stub_class
@@ -10,7 +10,7 @@ module Invoicesrpc
10
10
  # invoices.
11
11
  class Service
12
12
 
13
- include GRPC::GenericService
13
+ include ::GRPC::GenericService
14
14
 
15
15
  self.marshal_class_method = :encode
16
16
  self.unmarshal_class_method = :decode
@@ -20,20 +20,20 @@ module Invoicesrpc
20
20
  # SubscribeSingleInvoice returns a uni-directional stream (server -> client)
21
21
  # to notify the client of state transitions of the specified invoice.
22
22
  # Initially the current invoice state is always sent out.
23
- rpc :SubscribeSingleInvoice, SubscribeSingleInvoiceRequest, stream(Lnrpc::Invoice)
23
+ rpc :SubscribeSingleInvoice, ::Invoicesrpc::SubscribeSingleInvoiceRequest, stream(::Lnrpc::Invoice)
24
24
  #
25
25
  # CancelInvoice cancels a currently open invoice. If the invoice is already
26
26
  # canceled, this call will succeed. If the invoice is already settled, it will
27
27
  # fail.
28
- rpc :CancelInvoice, CancelInvoiceMsg, CancelInvoiceResp
28
+ rpc :CancelInvoice, ::Invoicesrpc::CancelInvoiceMsg, ::Invoicesrpc::CancelInvoiceResp
29
29
  #
30
30
  # AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
31
31
  # supplied in the request.
32
- rpc :AddHoldInvoice, AddHoldInvoiceRequest, AddHoldInvoiceResp
32
+ rpc :AddHoldInvoice, ::Invoicesrpc::AddHoldInvoiceRequest, ::Invoicesrpc::AddHoldInvoiceResp
33
33
  #
34
34
  # SettleInvoice settles an accepted invoice. If the invoice is already
35
35
  # settled, this call will succeed.
36
- rpc :SettleInvoice, SettleInvoiceMsg, SettleInvoiceResp
36
+ rpc :SettleInvoice, ::Invoicesrpc::SettleInvoiceMsg, ::Invoicesrpc::SettleInvoiceResp
37
37
  end
38
38
 
39
39
  Stub = Service.rpc_stub_class
@@ -12,6 +12,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  optional :amt_msat, :int64, 12
13
13
  optional :payment_hash, :bytes, 3
14
14
  optional :final_cltv_delta, :int32, 4
15
+ optional :payment_addr, :bytes, 20
15
16
  optional :payment_request, :string, 5
16
17
  optional :timeout_seconds, :int32, 6
17
18
  optional :fee_limit_sat, :int64, 7
@@ -26,6 +27,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
26
27
  repeated :dest_features, :enum, 16, "lnrpc.FeatureBit"
27
28
  optional :max_parts, :uint32, 17
28
29
  optional :no_inflight_updates, :bool, 18
30
+ optional :max_shard_size_msat, :uint64, 21
29
31
  end
30
32
  add_message "routerrpc.TrackPaymentRequest" do
31
33
  optional :payment_hash, :bytes, 1
@@ -83,6 +85,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
83
85
  optional :final_cltv_delta, :int32, 2
84
86
  optional :outgoing_chan_id, :uint64, 3
85
87
  repeated :hop_pubkeys, :bytes, 4
88
+ optional :payment_addr, :bytes, 5
86
89
  end
87
90
  add_message "routerrpc.BuildRouteResponse" do
88
91
  optional :route, :message, 1, "lnrpc.Route"
@@ -146,6 +149,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
146
149
  optional :outgoing_amount_msat, :uint64, 3
147
150
  optional :outgoing_expiry, :uint32, 4
148
151
  map :custom_records, :uint64, :bytes, 8
152
+ optional :onion_blob, :bytes, 9
149
153
  end
150
154
  add_message "routerrpc.ForwardHtlcInterceptResponse" do
151
155
  optional :incoming_circuit_key, :message, 1, "routerrpc.CircuitKey"
@@ -10,7 +10,7 @@ module Routerrpc
10
10
  # subsystem of the daemon.
11
11
  class Service
12
12
 
13
- include GRPC::GenericService
13
+ include ::GRPC::GenericService
14
14
 
15
15
  self.marshal_class_method = :encode
16
16
  self.unmarshal_class_method = :decode
@@ -20,65 +20,65 @@ module Routerrpc
20
20
  # SendPaymentV2 attempts to route a payment described by the passed
21
21
  # PaymentRequest to the final destination. The call returns a stream of
22
22
  # payment updates.
23
- rpc :SendPaymentV2, SendPaymentRequest, stream(Lnrpc::Payment)
23
+ rpc :SendPaymentV2, ::Routerrpc::SendPaymentRequest, stream(::Lnrpc::Payment)
24
24
  #
25
25
  # TrackPaymentV2 returns an update stream for the payment identified by the
26
26
  # payment hash.
27
- rpc :TrackPaymentV2, TrackPaymentRequest, stream(Lnrpc::Payment)
27
+ rpc :TrackPaymentV2, ::Routerrpc::TrackPaymentRequest, stream(::Lnrpc::Payment)
28
28
  #
29
29
  # EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it
30
30
  # may cost to send an HTLC to the target end destination.
31
- rpc :EstimateRouteFee, RouteFeeRequest, RouteFeeResponse
31
+ rpc :EstimateRouteFee, ::Routerrpc::RouteFeeRequest, ::Routerrpc::RouteFeeResponse
32
32
  #
33
33
  # Deprecated, use SendToRouteV2. SendToRoute attempts to make a payment via
34
34
  # the specified route. This method differs from SendPayment in that it
35
35
  # allows users to specify a full route manually. This can be used for
36
36
  # things like rebalancing, and atomic swaps. It differs from the newer
37
37
  # SendToRouteV2 in that it doesn't return the full HTLC information.
38
- rpc :SendToRoute, SendToRouteRequest, SendToRouteResponse
38
+ rpc :SendToRoute, ::Routerrpc::SendToRouteRequest, ::Routerrpc::SendToRouteResponse
39
39
  #
40
40
  # SendToRouteV2 attempts to make a payment via the specified route. This
41
41
  # method differs from SendPayment in that it allows users to specify a full
42
42
  # route manually. This can be used for things like rebalancing, and atomic
43
43
  # swaps.
44
- rpc :SendToRouteV2, SendToRouteRequest, Lnrpc::HTLCAttempt
44
+ rpc :SendToRouteV2, ::Routerrpc::SendToRouteRequest, ::Lnrpc::HTLCAttempt
45
45
  #
46
46
  # ResetMissionControl clears all mission control state and starts with a clean
47
47
  # slate.
48
- rpc :ResetMissionControl, ResetMissionControlRequest, ResetMissionControlResponse
48
+ rpc :ResetMissionControl, ::Routerrpc::ResetMissionControlRequest, ::Routerrpc::ResetMissionControlResponse
49
49
  #
50
50
  # QueryMissionControl exposes the internal mission control state to callers.
51
51
  # It is a development feature.
52
- rpc :QueryMissionControl, QueryMissionControlRequest, QueryMissionControlResponse
52
+ rpc :QueryMissionControl, ::Routerrpc::QueryMissionControlRequest, ::Routerrpc::QueryMissionControlResponse
53
53
  #
54
54
  # QueryProbability returns the current success probability estimate for a
55
55
  # given node pair and amount.
56
- rpc :QueryProbability, QueryProbabilityRequest, QueryProbabilityResponse
56
+ rpc :QueryProbability, ::Routerrpc::QueryProbabilityRequest, ::Routerrpc::QueryProbabilityResponse
57
57
  #
58
58
  # BuildRoute builds a fully specified route based on a list of hop public
59
59
  # keys. It retrieves the relevant channel policies from the graph in order to
60
60
  # calculate the correct fees and time locks.
61
- rpc :BuildRoute, BuildRouteRequest, BuildRouteResponse
61
+ rpc :BuildRoute, ::Routerrpc::BuildRouteRequest, ::Routerrpc::BuildRouteResponse
62
62
  #
63
63
  # SubscribeHtlcEvents creates a uni-directional stream from the server to
64
64
  # the client which delivers a stream of htlc events.
65
- rpc :SubscribeHtlcEvents, SubscribeHtlcEventsRequest, stream(HtlcEvent)
65
+ rpc :SubscribeHtlcEvents, ::Routerrpc::SubscribeHtlcEventsRequest, stream(::Routerrpc::HtlcEvent)
66
66
  #
67
67
  # Deprecated, use SendPaymentV2. SendPayment attempts to route a payment
68
68
  # described by the passed PaymentRequest to the final destination. The call
69
69
  # returns a stream of payment status updates.
70
- rpc :SendPayment, SendPaymentRequest, stream(PaymentStatus)
70
+ rpc :SendPayment, ::Routerrpc::SendPaymentRequest, stream(::Routerrpc::PaymentStatus)
71
71
  #
72
72
  # Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for
73
73
  # the payment identified by the payment hash.
74
- rpc :TrackPayment, TrackPaymentRequest, stream(PaymentStatus)
74
+ rpc :TrackPayment, ::Routerrpc::TrackPaymentRequest, stream(::Routerrpc::PaymentStatus)
75
75
  # *
76
76
  # HtlcInterceptor dispatches a bi-directional streaming RPC in which
77
77
  # Forwarded HTLC requests are sent to the client and the client responds with
78
78
  # a boolean that tells LND if this htlc should be intercepted.
79
79
  # In case of interception, the htlc can be either settled, cancelled or
80
80
  # resumed later by using the ResolveHoldForward endpoint.
81
- rpc :HtlcInterceptor, stream(ForwardHtlcInterceptResponse), stream(ForwardHtlcInterceptRequest)
81
+ rpc :HtlcInterceptor, stream(::Routerrpc::ForwardHtlcInterceptResponse), stream(::Routerrpc::ForwardHtlcInterceptRequest)
82
82
  end
83
83
 
84
84
  Stub = Service.rpc_stub_class
@@ -85,6 +85,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
85
85
  add_message "lnrpc.ChannelAcceptResponse" do
86
86
  optional :accept, :bool, 1
87
87
  optional :pending_chan_id, :bytes, 2
88
+ optional :error, :string, 3
89
+ optional :upfront_shutdown, :string, 4
90
+ optional :csv_delay, :uint32, 5
91
+ optional :reserve_sat, :uint64, 6
92
+ optional :in_flight_max_msat, :uint64, 7
93
+ optional :max_htlc_count, :uint32, 8
94
+ optional :min_htlc_in, :uint64, 9
95
+ optional :min_accept_depth, :uint32, 10
88
96
  end
89
97
  add_message "lnrpc.ChannelPoint" do
90
98
  optional :output_index, :uint32, 3
@@ -115,6 +123,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
115
123
  optional :target_conf, :int32, 3
116
124
  optional :sat_per_byte, :int64, 5
117
125
  optional :label, :string, 6
126
+ optional :min_confs, :int32, 7
127
+ optional :spend_unconfirmed, :bool, 8
118
128
  end
119
129
  add_message "lnrpc.SendManyResponse" do
120
130
  optional :txid, :string, 1
@@ -126,6 +136,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
126
136
  optional :sat_per_byte, :int64, 5
127
137
  optional :send_all, :bool, 6
128
138
  optional :label, :string, 7
139
+ optional :min_confs, :int32, 8
140
+ optional :spend_unconfirmed, :bool, 9
129
141
  end
130
142
  add_message "lnrpc.SendCoinsResponse" do
131
143
  optional :txid, :string, 1
@@ -160,6 +172,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
160
172
  add_message "lnrpc.ConnectPeerRequest" do
161
173
  optional :addr, :message, 1, "lnrpc.LightningAddress"
162
174
  optional :perm, :bool, 2
175
+ optional :timeout, :uint64, 3
163
176
  end
164
177
  add_message "lnrpc.ConnectPeerResponse" do
165
178
  end
@@ -173,6 +186,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
173
186
  optional :amount, :int64, 2
174
187
  optional :hash_lock, :bytes, 3
175
188
  optional :expiration_height, :uint32, 4
189
+ optional :htlc_index, :uint64, 5
190
+ optional :forwarding_channel, :uint64, 6
191
+ optional :forwarding_htlc_index, :uint64, 7
176
192
  end
177
193
  add_message "lnrpc.ChannelConstraints" do
178
194
  optional :csv_delay, :uint32, 1
@@ -277,11 +293,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
277
293
  optional :sync_type, :enum, 10, "lnrpc.Peer.SyncType"
278
294
  map :features, :uint32, :message, 11, "lnrpc.Feature"
279
295
  repeated :errors, :message, 12, "lnrpc.TimestampedError"
296
+ optional :flap_count, :int32, 13
297
+ optional :last_flap_ns, :int64, 14
280
298
  end
281
299
  add_enum "lnrpc.Peer.SyncType" do
282
300
  value :UNKNOWN_SYNC, 0
283
301
  value :ACTIVE_SYNC, 1
284
302
  value :PASSIVE_SYNC, 2
303
+ value :PINNED_SYNC, 3
285
304
  end
286
305
  add_message "lnrpc.TimestampedError" do
287
306
  optional :timestamp, :uint64, 1
@@ -385,6 +404,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
385
404
  optional :close_address, :string, 13
386
405
  optional :funding_shim, :message, 14, "lnrpc.FundingShim"
387
406
  optional :remote_max_value_in_flight_msat, :uint64, 15
407
+ optional :remote_max_htlcs, :uint32, 16
408
+ optional :max_local_csv, :uint32, 17
388
409
  end
389
410
  add_message "lnrpc.OpenStatusUpdate" do
390
411
  optional :pending_chan_id, :bytes, 4
@@ -431,6 +452,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
431
452
  add_message "lnrpc.FundingPsbtFinalize" do
432
453
  optional :signed_psbt, :bytes, 1
433
454
  optional :pending_chan_id, :bytes, 2
455
+ optional :final_raw_tx, :bytes, 3
434
456
  end
435
457
  add_message "lnrpc.FundingTransitionMsg" do
436
458
  oneof :trigger do
@@ -535,11 +557,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
535
557
  optional :confirmed_balance, :int64, 2
536
558
  optional :unconfirmed_balance, :int64, 3
537
559
  end
560
+ add_message "lnrpc.Amount" do
561
+ optional :sat, :uint64, 1
562
+ optional :msat, :uint64, 2
563
+ end
538
564
  add_message "lnrpc.ChannelBalanceRequest" do
539
565
  end
540
566
  add_message "lnrpc.ChannelBalanceResponse" do
541
567
  optional :balance, :int64, 1
542
568
  optional :pending_open_balance, :int64, 2
569
+ optional :local_balance, :message, 3, "lnrpc.Amount"
570
+ optional :remote_balance, :message, 4, "lnrpc.Amount"
571
+ optional :unsettled_local_balance, :message, 5, "lnrpc.Amount"
572
+ optional :unsettled_remote_balance, :message, 6, "lnrpc.Amount"
573
+ optional :pending_open_local_balance, :message, 7, "lnrpc.Amount"
574
+ optional :pending_open_remote_balance, :message, 8, "lnrpc.Amount"
543
575
  end
544
576
  add_message "lnrpc.QueryRoutesRequest" do
545
577
  optional :pub_key, :string, 1
@@ -689,6 +721,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
689
721
  optional :global_features, :bytes, 3
690
722
  optional :alias, :string, 4
691
723
  optional :color, :string, 5
724
+ map :features, :uint32, :message, 6, "lnrpc.Feature"
692
725
  end
693
726
  add_message "lnrpc.ChannelEdgeUpdate" do
694
727
  optional :chan_id, :uint64, 1
@@ -739,6 +772,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
739
772
  repeated :htlcs, :message, 22, "lnrpc.InvoiceHTLC"
740
773
  map :features, :uint32, :message, 24, "lnrpc.Feature"
741
774
  optional :is_keysend, :bool, 25
775
+ optional :payment_addr, :bytes, 26
742
776
  end
743
777
  add_enum "lnrpc.Invoice.InvoiceState" do
744
778
  value :OPEN, 0
@@ -762,6 +796,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
762
796
  optional :r_hash, :bytes, 1
763
797
  optional :payment_request, :string, 2
764
798
  optional :add_index, :uint64, 16
799
+ optional :payment_addr, :bytes, 17
765
800
  end
766
801
  add_message "lnrpc.PaymentHash" do
767
802
  optional :r_hash_str, :string, 1
@@ -806,6 +841,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
806
841
  value :FAILED, 3
807
842
  end
808
843
  add_message "lnrpc.HTLCAttempt" do
844
+ optional :attempt_id, :uint64, 7
809
845
  optional :status, :enum, 1, "lnrpc.HTLCAttempt.HTLCStatus"
810
846
  optional :route, :message, 2, "lnrpc.Route"
811
847
  optional :attempt_time_ns, :int64, 3
@@ -835,6 +871,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
835
871
  end
836
872
  add_message "lnrpc.AbandonChannelRequest" do
837
873
  optional :channel_point, :message, 1, "lnrpc.ChannelPoint"
874
+ optional :pending_funding_shim_only, :bool, 2
838
875
  end
839
876
  add_message "lnrpc.AbandonChannelResponse" do
840
877
  end
@@ -956,10 +993,30 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
956
993
  end
957
994
  add_message "lnrpc.BakeMacaroonRequest" do
958
995
  repeated :permissions, :message, 1, "lnrpc.MacaroonPermission"
996
+ optional :root_key_id, :uint64, 2
959
997
  end
960
998
  add_message "lnrpc.BakeMacaroonResponse" do
961
999
  optional :macaroon, :string, 1
962
1000
  end
1001
+ add_message "lnrpc.ListMacaroonIDsRequest" do
1002
+ end
1003
+ add_message "lnrpc.ListMacaroonIDsResponse" do
1004
+ repeated :root_key_ids, :uint64, 1
1005
+ end
1006
+ add_message "lnrpc.DeleteMacaroonIDRequest" do
1007
+ optional :root_key_id, :uint64, 1
1008
+ end
1009
+ add_message "lnrpc.DeleteMacaroonIDResponse" do
1010
+ optional :deleted, :bool, 1
1011
+ end
1012
+ add_message "lnrpc.MacaroonPermissionList" do
1013
+ repeated :permissions, :message, 1, "lnrpc.MacaroonPermission"
1014
+ end
1015
+ add_message "lnrpc.ListPermissionsRequest" do
1016
+ end
1017
+ add_message "lnrpc.ListPermissionsResponse" do
1018
+ map :method_permissions, :string, :message, 1, "lnrpc.MacaroonPermissionList"
1019
+ end
963
1020
  add_message "lnrpc.Failure" do
964
1021
  optional :code, :enum, 1, "lnrpc.Failure.FailureCode"
965
1022
  optional :channel_update, :message, 3, "lnrpc.ChannelUpdate"
@@ -1013,6 +1070,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1013
1070
  optional :htlc_maximum_msat, :uint64, 11
1014
1071
  optional :extra_opaque_data, :bytes, 12
1015
1072
  end
1073
+ add_message "lnrpc.MacaroonId" do
1074
+ optional :nonce, :bytes, 1
1075
+ optional :storageId, :bytes, 2
1076
+ repeated :ops, :message, 3, "lnrpc.Op"
1077
+ end
1078
+ add_message "lnrpc.Op" do
1079
+ optional :entity, :string, 1
1080
+ repeated :actions, :string, 2
1081
+ end
1016
1082
  add_enum "lnrpc.AddressType" do
1017
1083
  value :WITNESS_PUBKEY_HASH, 0
1018
1084
  value :NESTED_PUBKEY_HASH, 1
@@ -1081,6 +1147,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1081
1147
  value :PAYMENT_ADDR_OPT, 15
1082
1148
  value :MPP_REQ, 16
1083
1149
  value :MPP_OPT, 17
1150
+ value :WUMBO_CHANNELS_REQ, 18
1151
+ value :WUMBO_CHANNELS_OPT, 19
1152
+ value :ANCHORS_REQ, 20
1153
+ value :ANCHORS_OPT, 21
1154
+ value :ANCHORS_ZERO_FEE_HTLC_REQ, 22
1155
+ value :ANCHORS_ZERO_FEE_HTLC_OPT, 23
1084
1156
  end
1085
1157
  end
1086
1158
  end
@@ -1174,6 +1246,7 @@ module Lnrpc
1174
1246
  ChannelEventUpdate::UpdateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEventUpdate.UpdateType").enummodule
1175
1247
  WalletBalanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.WalletBalanceRequest").msgclass
1176
1248
  WalletBalanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.WalletBalanceResponse").msgclass
1249
+ Amount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Amount").msgclass
1177
1250
  ChannelBalanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBalanceRequest").msgclass
1178
1251
  ChannelBalanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBalanceResponse").msgclass
1179
1252
  QueryRoutesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.QueryRoutesRequest").msgclass
@@ -1250,9 +1323,18 @@ module Lnrpc
1250
1323
  MacaroonPermission = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.MacaroonPermission").msgclass
1251
1324
  BakeMacaroonRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.BakeMacaroonRequest").msgclass
1252
1325
  BakeMacaroonResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.BakeMacaroonResponse").msgclass
1326
+ ListMacaroonIDsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListMacaroonIDsRequest").msgclass
1327
+ ListMacaroonIDsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListMacaroonIDsResponse").msgclass
1328
+ DeleteMacaroonIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DeleteMacaroonIDRequest").msgclass
1329
+ DeleteMacaroonIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DeleteMacaroonIDResponse").msgclass
1330
+ MacaroonPermissionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.MacaroonPermissionList").msgclass
1331
+ ListPermissionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPermissionsRequest").msgclass
1332
+ ListPermissionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPermissionsResponse").msgclass
1253
1333
  Failure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Failure").msgclass
1254
1334
  Failure::FailureCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Failure.FailureCode").enummodule
1255
1335
  ChannelUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelUpdate").msgclass
1336
+ MacaroonId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.MacaroonId").msgclass
1337
+ Op = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Op").msgclass
1256
1338
  AddressType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AddressType").enummodule
1257
1339
  CommitmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.CommitmentType").enummodule
1258
1340
  Initiator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Initiator").enummodule