lnrpc 0.7.0 → 0.7.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 +4 -4
- data/README.md +1 -1
- data/lib/lnrpc/rpc.proto +36 -3
- data/lib/lnrpc/rpc_pb.rb +9 -0
- data/lib/lnrpc/version.rb +1 -1
- data/lnrpc.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9939023e3ed68220718dde71021835a7171dfb77ed2986b1268d27c8edc2fcf
|
4
|
+
data.tar.gz: f09a58cd2cd02af894b8a893ed8dc7bb557e3af8cfbef584e335d9f8693b5de9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fbf9f06e698617352a484fa0bb8223331fa8d18cb371d3db8e615641c3a65e8d868adf51d43224ce2de9ec805aa187a36ca94f2464eacab17e2203bfeaecfa6
|
7
|
+
data.tar.gz: 8486fb9232fef1939d4bf295f47282b8dd17712d81a575305a58e9c037ce262feaae3a6aa6089e53d4fd0a62a486e71df769f48cda118959bf9738ff5bcfaced
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ a [gRPC](https://grpc.io/) client for [LND, the Lightning Network Daemon](https:
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'lnrpc', '~> 0.
|
12
|
+
gem 'lnrpc', '~> 0.7.0'
|
13
13
|
```
|
14
14
|
lnrpc follows the lnd versioning, thus it is recommended to specify the exact version you need for your lnd node as dependency (see [#Versioning](#Versioning)).
|
15
15
|
|
data/lib/lnrpc/rpc.proto
CHANGED
@@ -1161,6 +1161,14 @@ message Channel {
|
|
1161
1161
|
|
1162
1162
|
/// A set of flags showing the current state of the channel.
|
1163
1163
|
string chan_status_flags = 19 [json_name = "chan_status_flags"];
|
1164
|
+
|
1165
|
+
/// The minimum satoshis this node is required to reserve in its balance.
|
1166
|
+
int64 local_chan_reserve_sat = 20 [json_name = "local_chan_reserve_sat"];
|
1167
|
+
|
1168
|
+
/**
|
1169
|
+
The minimum satoshis the other node is required to reserve in its balance.
|
1170
|
+
*/
|
1171
|
+
int64 remote_chan_reserve_sat = 21 [json_name = "remote_chan_reserve_sat"];
|
1164
1172
|
}
|
1165
1173
|
|
1166
1174
|
|
@@ -1468,6 +1476,15 @@ message PendingChannelsResponse {
|
|
1468
1476
|
|
1469
1477
|
int64 local_balance = 4 [ json_name = "local_balance" ];
|
1470
1478
|
int64 remote_balance = 5 [ json_name = "remote_balance" ];
|
1479
|
+
|
1480
|
+
/// The minimum satoshis this node is required to reserve in its balance.
|
1481
|
+
int64 local_chan_reserve_sat = 6 [json_name = "local_chan_reserve_sat"];
|
1482
|
+
|
1483
|
+
/**
|
1484
|
+
The minimum satoshis the other node is required to reserve in its
|
1485
|
+
balance.
|
1486
|
+
*/
|
1487
|
+
int64 remote_chan_reserve_sat = 7 [json_name = "remote_chan_reserve_sat"];
|
1471
1488
|
}
|
1472
1489
|
|
1473
1490
|
message PendingOpenChannel {
|
@@ -1634,6 +1651,12 @@ message QueryRoutesRequest {
|
|
1634
1651
|
self is assumed.
|
1635
1652
|
*/
|
1636
1653
|
string source_pub_key = 8;
|
1654
|
+
|
1655
|
+
/**
|
1656
|
+
If set to true, edge probabilities from mission control will be used to get
|
1657
|
+
the optimal route.
|
1658
|
+
*/
|
1659
|
+
bool use_mission_control = 9;
|
1637
1660
|
}
|
1638
1661
|
|
1639
1662
|
message EdgeLocator {
|
@@ -1777,6 +1800,7 @@ message RoutingPolicy {
|
|
1777
1800
|
int64 fee_rate_milli_msat = 4 [json_name = "fee_rate_milli_msat"];
|
1778
1801
|
bool disabled = 5 [json_name = "disabled"];
|
1779
1802
|
uint64 max_htlc_msat = 6 [json_name = "max_htlc_msat"];
|
1803
|
+
uint32 last_update = 7 [json_name = "last_update"];
|
1780
1804
|
}
|
1781
1805
|
|
1782
1806
|
/**
|
@@ -1796,7 +1820,7 @@ message ChannelEdge {
|
|
1796
1820
|
uint64 channel_id = 1 [json_name = "channel_id"];
|
1797
1821
|
string chan_point = 2 [json_name = "chan_point"];
|
1798
1822
|
|
1799
|
-
uint32 last_update = 3 [json_name = "last_update"];
|
1823
|
+
uint32 last_update = 3 [json_name = "last_update", deprecated = true];
|
1800
1824
|
|
1801
1825
|
string node1_pub = 4 [json_name = "node1_pub"];
|
1802
1826
|
string node2_pub = 5 [json_name = "node2_pub"];
|
@@ -1851,6 +1875,9 @@ message NetworkInfo {
|
|
1851
1875
|
int64 max_channel_size = 9 [json_name = "max_channel_size"];
|
1852
1876
|
int64 median_channel_size_sat = 10 [json_name = "median_channel_size_sat"];
|
1853
1877
|
|
1878
|
+
// The number of edges marked as zombies.
|
1879
|
+
uint64 num_zombie_chans = 11 [json_name = "num_zombie_chans"];
|
1880
|
+
|
1854
1881
|
// TODO(roasbeef): fee rate info, expiry
|
1855
1882
|
// * also additional RPC for tracking fee info once in
|
1856
1883
|
}
|
@@ -2147,8 +2174,8 @@ message Payment {
|
|
2147
2174
|
/// The path this payment took
|
2148
2175
|
repeated string path = 4 [ json_name = "path" ];
|
2149
2176
|
|
2150
|
-
///
|
2151
|
-
int64 fee = 5 [json_name = "fee"];
|
2177
|
+
/// Deprecated, use fee_sat or fee_msat.
|
2178
|
+
int64 fee = 5 [json_name = "fee", deprecated = true];
|
2152
2179
|
|
2153
2180
|
/// The payment preimage
|
2154
2181
|
string payment_preimage = 6 [json_name = "payment_preimage"];
|
@@ -2171,6 +2198,12 @@ message Payment {
|
|
2171
2198
|
|
2172
2199
|
// The status of the payment.
|
2173
2200
|
PaymentStatus status = 10 [json_name = "status"];
|
2201
|
+
|
2202
|
+
/// The fee paid for this payment in satoshis
|
2203
|
+
int64 fee_sat = 11 [json_name = "fee_sat"];
|
2204
|
+
|
2205
|
+
/// The fee paid for this payment in milli-satoshis
|
2206
|
+
int64 fee_msat = 12 [json_name = "fee_msat"];
|
2174
2207
|
}
|
2175
2208
|
|
2176
2209
|
message ListPaymentsRequest {
|
data/lib/lnrpc/rpc_pb.rb
CHANGED
@@ -194,6 +194,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
194
194
|
optional :private, :bool, 17
|
195
195
|
optional :initiator, :bool, 18
|
196
196
|
optional :chan_status_flags, :string, 19
|
197
|
+
optional :local_chan_reserve_sat, :int64, 20
|
198
|
+
optional :remote_chan_reserve_sat, :int64, 21
|
197
199
|
end
|
198
200
|
add_message "lnrpc.ListChannelsRequest" do
|
199
201
|
optional :active_only, :bool, 1
|
@@ -349,6 +351,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
349
351
|
optional :capacity, :int64, 3
|
350
352
|
optional :local_balance, :int64, 4
|
351
353
|
optional :remote_balance, :int64, 5
|
354
|
+
optional :local_chan_reserve_sat, :int64, 6
|
355
|
+
optional :remote_chan_reserve_sat, :int64, 7
|
352
356
|
end
|
353
357
|
add_message "lnrpc.PendingChannelsResponse.PendingOpenChannel" do
|
354
358
|
optional :channel, :message, 1, "lnrpc.PendingChannelsResponse.PendingChannel"
|
@@ -412,6 +416,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
412
416
|
repeated :ignored_nodes, :bytes, 6
|
413
417
|
repeated :ignored_edges, :message, 7, "lnrpc.EdgeLocator"
|
414
418
|
optional :source_pub_key, :string, 8
|
419
|
+
optional :use_mission_control, :bool, 9
|
415
420
|
end
|
416
421
|
add_message "lnrpc.EdgeLocator" do
|
417
422
|
optional :channel_id, :uint64, 1
|
@@ -466,6 +471,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
466
471
|
optional :fee_rate_milli_msat, :int64, 4
|
467
472
|
optional :disabled, :bool, 5
|
468
473
|
optional :max_htlc_msat, :uint64, 6
|
474
|
+
optional :last_update, :uint32, 7
|
469
475
|
end
|
470
476
|
add_message "lnrpc.ChannelEdge" do
|
471
477
|
optional :channel_id, :uint64, 1
|
@@ -500,6 +506,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
500
506
|
optional :min_channel_size, :int64, 8
|
501
507
|
optional :max_channel_size, :int64, 9
|
502
508
|
optional :median_channel_size_sat, :int64, 10
|
509
|
+
optional :num_zombie_chans, :uint64, 11
|
503
510
|
end
|
504
511
|
add_message "lnrpc.StopRequest" do
|
505
512
|
end
|
@@ -607,6 +614,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
607
614
|
optional :value_msat, :int64, 8
|
608
615
|
optional :payment_request, :string, 9
|
609
616
|
optional :status, :enum, 10, "lnrpc.Payment.PaymentStatus"
|
617
|
+
optional :fee_sat, :int64, 11
|
618
|
+
optional :fee_msat, :int64, 12
|
610
619
|
end
|
611
620
|
add_enum "lnrpc.Payment.PaymentStatus" do
|
612
621
|
value :UNKNOWN, 0
|
data/lib/lnrpc/version.rb
CHANGED
data/lnrpc.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.17"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
28
28
|
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
-
|
29
|
+
|
30
30
|
spec.add_dependency "grpc", ">= 1.19.0"
|
31
31
|
spec.add_dependency "google-protobuf", ">=3.7"
|
32
32
|
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.
|
4
|
+
version: 0.7.1
|
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-
|
11
|
+
date: 2019-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|