lnrpc 0.8.0.beta.rc1 → 0.8.0

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: 440c4fe92e38daf647953e561599e2cd216c13d47cbf0c90904b748764401603
4
- data.tar.gz: e670fdb389c31995e69cc5e1b1b5287d943312b9a7dbf22fc87f7b7bcf52559b
3
+ metadata.gz: 9481909a27ad229cd4d30887ef89068c0b90a8ff45c2113d89f5ae257052fb35
4
+ data.tar.gz: 12e72406128b26d54b1512f6bfa56d246916902c2526275a5098922c23ffaf65
5
5
  SHA512:
6
- metadata.gz: 88d6cee44770e7ed6f04ef8ffeca84c00e55c74b76bd0bbbd588be8c3ce5142987833602bb7762731e5b7dd963a7ed17972465416919838f209ea3afd48d0d41
7
- data.tar.gz: 28b0c4b5db99fe16ef23f5497c39223579d7ed7a14f812feaa6953509a9929f03be87207d358d26fd2ffb250ba1ae5feb97983d64a6693153640f3a1813c61db
6
+ metadata.gz: 442c9e2457ad6064fef6ccba011ff733272198a8fbc972fcabcc108e4e6f1d9b4f8c03300f56c5a854f47cfc5a8dc88c22cfdbae76e9d5020537c114c26f1ff1
7
+ data.tar.gz: 6bfc611d1450f059c065739a9c8ee36c39b4c90e9c718f04eb60188fefb1769db7a4fef932433d966d8e5f0c2813716570388108eb28ae3ad0f24b725c4d3860
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lnrpc (0.7.1)
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-x86_64-linux)
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-x86_64-linux)
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)
@@ -888,8 +888,9 @@ message SendRequest {
888
888
  uint64 outgoing_chan_id = 9;
889
889
 
890
890
  /**
891
- An optional maximum total time lock for the route. If zero, there is no
892
- 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.
893
894
  */
894
895
  uint32 cltv_limit = 10;
895
896
 
@@ -1743,12 +1744,11 @@ message QueryRoutesRequest {
1743
1744
  repeated NodePair ignored_pairs = 10;
1744
1745
 
1745
1746
  /**
1746
- An optional field that can be used to pass an arbitrary set of TLV records
1747
- to a peer which understands the new records. This can be used to pass
1748
- application specific data during the payment attempt. If the destination
1749
- does not support the specified recrods, and error will be returned.
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
1750
  */
1751
- map<uint64, bytes> dest_tlv = 11;
1751
+ uint32 cltv_limit = 11;
1752
1752
  }
1753
1753
 
1754
1754
  message NodePair {
@@ -1808,17 +1808,9 @@ message Hop {
1808
1808
 
1809
1809
  /**
1810
1810
  If set to true, then this hop will be encoded using the new variable length
1811
- TLV format. Note that if any custom tlv_records below are specified, then
1812
- this field MUST be set to true for them to be encoded properly.
1811
+ TLV format.
1813
1812
  */
1814
1813
  bool tlv_payload = 9 [json_name = "tlv_payload"];
1815
-
1816
- /**
1817
- An optional set of key-value TLV records. This is useful within the context
1818
- of the SendToRoute call as it allows callers to specify arbitrary K-V pairs
1819
- to drop off at each hop within the onion.
1820
- */
1821
- map<uint64, bytes> tlv_records = 10 [json_name = "tlv_records"];
1822
1814
  }
1823
1815
 
1824
1816
  /**
@@ -2204,7 +2196,7 @@ message Invoice {
2204
2196
  enum InvoiceHTLCState {
2205
2197
  ACCEPTED = 0;
2206
2198
  SETTLED = 1;
2207
- CANCELLED = 2;
2199
+ CANCELED = 2;
2208
2200
  }
2209
2201
 
2210
2202
  /// Details of an HTLC that paid to an invoice
@@ -2224,7 +2216,7 @@ message InvoiceHTLC {
2224
2216
  /// Time at which this htlc was accepted.
2225
2217
  int64 accept_time = 5 [json_name = "accept_time"];
2226
2218
 
2227
- /// Time at which this htlc was settled or cancelled.
2219
+ /// Time at which this htlc was settled or canceled.
2228
2220
  int64 resolve_time = 6 [json_name = "resolve_time"];
2229
2221
 
2230
2222
  /// Block height at which this htlc expires.
@@ -440,7 +440,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
440
440
  optional :source_pub_key, :string, 8
441
441
  optional :use_mission_control, :bool, 9
442
442
  repeated :ignored_pairs, :message, 10, "lnrpc.NodePair"
443
- map :dest_tlv, :uint64, :bytes, 11
443
+ optional :cltv_limit, :uint32, 11
444
444
  end
445
445
  add_message "lnrpc.NodePair" do
446
446
  optional :from, :bytes, 1
@@ -464,7 +464,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
464
464
  optional :fee_msat, :int64, 7
465
465
  optional :pub_key, :string, 8
466
466
  optional :tlv_payload, :bool, 9
467
- map :tlv_records, :uint64, :bytes, 10
468
467
  end
469
468
  add_message "lnrpc.Route" do
470
469
  optional :total_time_lock, :uint32, 1
@@ -788,7 +787,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
788
787
  add_enum "lnrpc.InvoiceHTLCState" do
789
788
  value :ACCEPTED, 0
790
789
  value :SETTLED, 1
791
- value :CANCELLED, 2
790
+ value :CANCELED, 2
792
791
  end
793
792
  end
794
793
 
@@ -2,7 +2,7 @@
2
2
  # Source: rpc.proto for package 'lnrpc'
3
3
 
4
4
  require 'grpc'
5
- require 'rpc_pb'
5
+ require_relative 'rpc_pb'
6
6
 
7
7
  module Lnrpc
8
8
  module WalletUnlocker
@@ -10,19 +10,19 @@ module Lnrpc
10
10
  # Comments in this file will be directly parsed into the API
11
11
  # Documentation as descriptions of the associated method, message, or field.
12
12
  # These descriptions should go right above the definition of the object, and
13
- # can be in either block or /// comment format.
14
- #
13
+ # can be in either block or /// comment format.
14
+ #
15
15
  # One edge case exists where a // comment followed by a /// comment in the
16
16
  # next line will cause the description not to show up in the documentation. In
17
17
  # that instance, simply separate the two comments with a blank line.
18
- #
18
+ #
19
19
  # An RPC method can be matched to an lncli command by placing a line in the
20
20
  # beginning of the description in exactly the following format:
21
21
  # lncli: `methodname`
22
- #
22
+ #
23
23
  # Failure to specify the exact name of the command will cause documentation
24
24
  # generation to fail.
25
- #
25
+ #
26
26
  # More information on how exactly the gRPC documentation is generated from
27
27
  # this proto file can be found here:
28
28
  # https://github.com/lightninglabs/lightning-api
@@ -47,7 +47,7 @@ module Lnrpc
47
47
  # method should be used to commit the newly generated seed, and create the
48
48
  # wallet.
49
49
  rpc :GenSeed, GenSeedRequest, GenSeedResponse
50
- # *
50
+ # *
51
51
  # InitWallet is used when lnd is starting up for the first time to fully
52
52
  # initialize the daemon and its internal wallet. At the very least a wallet
53
53
  # password must be provided. This will be used to encrypt sensitive material
@@ -1,3 +1,3 @@
1
1
  module Lnrpc
2
- VERSION = "0.8.0.beta.rc1"
2
+ VERSION = "0.8.0"
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.8.0.beta.rc1
4
+ version: 0.8.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: 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,9 +121,9 @@ 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: 1.3.1
126
+ version: '0'
127
127
  requirements: []
128
128
  rubygems_version: 3.0.6
129
129
  signing_key: