lnrpc 0.14.1 → 0.15.5

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.
@@ -18,7 +18,9 @@ module Walletrpc
18
18
 
19
19
  #
20
20
  # ListUnspent returns a list of all utxos spendable by the wallet with a
21
- # number of confirmations between the specified minimum and maximum.
21
+ # number of confirmations between the specified minimum and maximum. By
22
+ # default, all utxos are listed. To list only the unconfirmed utxos, set
23
+ # the unconfirmed_only to true.
22
24
  rpc :ListUnspent, ::Walletrpc::ListUnspentRequest, ::Walletrpc::ListUnspentResponse
23
25
  #
24
26
  # LeaseOutput locks an output to the given ID, preventing it from being
@@ -53,6 +55,11 @@ module Walletrpc
53
55
  # wallet accounts and return only those matching.
54
56
  rpc :ListAccounts, ::Walletrpc::ListAccountsRequest, ::Walletrpc::ListAccountsResponse
55
57
  #
58
+ # RequiredReserve returns the minimum amount of satoshis that should be kept
59
+ # in the wallet in order to fee bump anchor channels if necessary. The value
60
+ # scales with the number of public anchor channels but is capped at a maximum.
61
+ rpc :RequiredReserve, ::Walletrpc::RequiredReserveRequest, ::Walletrpc::RequiredReserveResponse
62
+ #
56
63
  # ImportAccount imports an account backed by an account extended public key.
57
64
  # The master key fingerprint denotes the fingerprint of the root key
58
65
  # corresponding to the account public key (also known as the key with
@@ -169,6 +176,19 @@ module Walletrpc
169
176
  # an error on the caller's side.
170
177
  rpc :FundPsbt, ::Walletrpc::FundPsbtRequest, ::Walletrpc::FundPsbtResponse
171
178
  #
179
+ # SignPsbt expects a partial transaction with all inputs and outputs fully
180
+ # declared and tries to sign all unsigned inputs that have all required fields
181
+ # (UTXO information, BIP32 derivation information, witness or sig scripts)
182
+ # set.
183
+ # If no error is returned, the PSBT is ready to be given to the next signer or
184
+ # to be finalized if lnd was the last signer.
185
+ #
186
+ # NOTE: This RPC only signs inputs (and only those it can sign), it does not
187
+ # perform any other tasks (such as coin selection, UTXO locking or
188
+ # input/output/fee value validation, PSBT finalization). Any input that is
189
+ # incomplete will be skipped.
190
+ rpc :SignPsbt, ::Walletrpc::SignPsbtRequest, ::Walletrpc::SignPsbtResponse
191
+ #
172
192
  # FinalizePsbt expects a partial transaction with all inputs and outputs fully
173
193
  # declared and tries to sign all inputs that belong to the wallet. Lnd must be
174
194
  # the last signer of the transaction. That means, if there are any unsigned
@@ -3,7 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'rpc_pb'
6
+ require 'lightning_pb'
7
7
 
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("walletunlocker.proto", :syntax => :proto3) do
data/lib/lnrpc/client.rb CHANGED
@@ -16,13 +16,13 @@ module Lnrpc
16
16
  if options.has_key?(:credentials)
17
17
  # if there are non hex values prvided we assume it's the certificate file as string otherwise we assume it's the hex value
18
18
  self.credentials = options[:credentials].match?(/\H/) ? options[:credentials] : [options[:credentials]].pack('H*')
19
- elsif File.exists?(::File.expand_path(options[:credentials_path] || DEFAULT_CREDENTIALS_PATH))
19
+ elsif File.exist?(::File.expand_path(options[:credentials_path] || DEFAULT_CREDENTIALS_PATH))
20
20
  self.credentials = ::File.read(::File.expand_path(options[:credentials_path] || DEFAULT_CREDENTIALS_PATH))
21
21
  else
22
22
  self.credentials = nil
23
23
  end
24
24
 
25
- if !options.has_key?(:macaroon) && File.exists?(::File.expand_path(options[:macaroon_path] || DEFAULT_MACAROON_PATH))
25
+ if !options.has_key?(:macaroon) && File.exist?(::File.expand_path(options[:macaroon_path] || DEFAULT_MACAROON_PATH))
26
26
  options[:macaroon] = ::File.read(::File.expand_path(options[:macaroon_path] || DEFAULT_MACAROON_PATH)).unpack("H*")
27
27
  end
28
28
  self.macaroon = options[:macaroon]
data/lib/lnrpc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lnrpc
2
- VERSION = "0.14.1"
2
+ VERSION = "0.15.5"
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.14.1
4
+ version: 0.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bumann
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-12 00:00:00.000000000 Z
11
+ date: 2023-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,15 +103,23 @@ files:
103
103
  - lib/grpc_services/autopilotrpc/autopilot_services_pb.rb
104
104
  - lib/grpc_services/chainrpc/chainnotifier_pb.rb
105
105
  - lib/grpc_services/chainrpc/chainnotifier_services_pb.rb
106
+ - lib/grpc_services/devrpc/dev_pb.rb
107
+ - lib/grpc_services/devrpc/dev_services_pb.rb
106
108
  - lib/grpc_services/invoicesrpc/invoices_pb.rb
107
109
  - lib/grpc_services/invoicesrpc/invoices_services_pb.rb
110
+ - lib/grpc_services/lightning_pb.rb
111
+ - lib/grpc_services/lightning_services_pb.rb
108
112
  - lib/grpc_services/lnclipb/lncli_pb.rb
113
+ - lib/grpc_services/neutrinorpc/neutrino_pb.rb
114
+ - lib/grpc_services/neutrinorpc/neutrino_services_pb.rb
115
+ - lib/grpc_services/peersrpc/peers_pb.rb
116
+ - lib/grpc_services/peersrpc/peers_services_pb.rb
109
117
  - lib/grpc_services/routerrpc/router_pb.rb
110
118
  - lib/grpc_services/routerrpc/router_services_pb.rb
111
- - lib/grpc_services/rpc_pb.rb
112
- - lib/grpc_services/rpc_services_pb.rb
113
119
  - lib/grpc_services/signrpc/signer_pb.rb
114
120
  - lib/grpc_services/signrpc/signer_services_pb.rb
121
+ - lib/grpc_services/stateservice_pb.rb
122
+ - lib/grpc_services/stateservice_services_pb.rb
115
123
  - lib/grpc_services/verrpc/verrpc_pb.rb
116
124
  - lib/grpc_services/verrpc/verrpc_services_pb.rb
117
125
  - lib/grpc_services/walletrpc/walletkit_pb.rb
@@ -133,7 +141,7 @@ licenses:
133
141
  - MIT
134
142
  metadata:
135
143
  funding: lightning:02ad33d99d0bb3bf3bb8ec8e089cbefa8fd7de23a13cfa59aec9af9730816be76f
136
- post_install_message:
144
+ post_install_message:
137
145
  rdoc_options: []
138
146
  require_paths:
139
147
  - lib
@@ -149,8 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
157
  - !ruby/object:Gem::Version
150
158
  version: '0'
151
159
  requirements: []
152
- rubygems_version: 3.1.6
153
- signing_key:
160
+ rubygems_version: 3.4.1
161
+ signing_key:
154
162
  specification_version: 4
155
163
  summary: gRPC interface for lnd packed as ruby gem
156
164
  test_files: []