ruby_lnd_grpc_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 464603f977f489569939c24e631fe1888cbc7006
4
+ data.tar.gz: a86213724860ca7c0d5644a68addaaaf0308e959
5
+ SHA512:
6
+ metadata.gz: a907ec8bd1a81ad6b714bc76d9547c71f3159d6b39e9c8e60c64e90d4a893e7624b82fd52b89e035ede1fa67d39632549533cc6a906505c4a748e0c4ea66c5d4
7
+ data.tar.gz: f8ff5d07c0dd2267109a84d3ed66e7ee4a746003d28c0f623cc29dd746b2c88f976db73f04c7ae7903837b01c4459d8354b481c362910874e5c0e991c26ae1c6
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ruby_lnd_grpc_client.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Vladyslav Budichenko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # RubyLndGrpcClient
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ruby_lnd_grpc_client`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'ruby_lnd_grpc_client'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install ruby_lnd_grpc_client
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ruby_lnd_grpc_client.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "ruby_lnd_grpc_client"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
Binary file
@@ -0,0 +1,13 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/annotations.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/http_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ end
9
+
10
+ module Google
11
+ module Api
12
+ end
13
+ end
@@ -0,0 +1,35 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/http.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.api.Http" do
8
+ repeated :rules, :message, 1, "google.api.HttpRule"
9
+ end
10
+ add_message "google.api.HttpRule" do
11
+ optional :selector, :string, 1
12
+ optional :body, :string, 7
13
+ repeated :additional_bindings, :message, 11, "google.api.HttpRule"
14
+ oneof :pattern do
15
+ optional :get, :string, 2
16
+ optional :put, :string, 3
17
+ optional :post, :string, 4
18
+ optional :delete, :string, 5
19
+ optional :patch, :string, 6
20
+ optional :custom, :message, 8, "google.api.CustomHttpPattern"
21
+ end
22
+ end
23
+ add_message "google.api.CustomHttpPattern" do
24
+ optional :kind, :string, 1
25
+ optional :path, :string, 2
26
+ end
27
+ end
28
+
29
+ module Google
30
+ module Api
31
+ Http = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Http").msgclass
32
+ HttpRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpRule").msgclass
33
+ CustomHttpPattern = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.CustomHttpPattern").msgclass
34
+ end
35
+ end
data/lib/rpc_pb.rb ADDED
@@ -0,0 +1,410 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: rpc.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "lnrpc.Transaction" do
9
+ optional :tx_hash, :string, 1
10
+ optional :amount, :double, 2
11
+ optional :num_confirmations, :int32, 3
12
+ optional :block_hash, :string, 4
13
+ optional :block_height, :int32, 5
14
+ optional :time_stamp, :int64, 6
15
+ optional :total_fees, :int64, 7
16
+ end
17
+ add_message "lnrpc.GetTransactionsRequest" do
18
+ end
19
+ add_message "lnrpc.TransactionDetails" do
20
+ repeated :transactions, :message, 1, "lnrpc.Transaction"
21
+ end
22
+ add_message "lnrpc.SendRequest" do
23
+ optional :dest, :bytes, 1
24
+ optional :dest_string, :string, 2
25
+ optional :amt, :int64, 3
26
+ optional :payment_hash, :bytes, 4
27
+ optional :payment_hash_string, :string, 5
28
+ optional :payment_request, :string, 6
29
+ end
30
+ add_message "lnrpc.SendResponse" do
31
+ optional :payment_preimage, :bytes, 1
32
+ optional :payment_route, :message, 2, "lnrpc.Route"
33
+ end
34
+ add_message "lnrpc.ChannelPoint" do
35
+ optional :funding_txid, :bytes, 1
36
+ optional :funding_txid_str, :string, 2
37
+ optional :output_index, :uint32, 3
38
+ end
39
+ add_message "lnrpc.LightningAddress" do
40
+ optional :pubkey, :string, 1
41
+ optional :host, :string, 2
42
+ end
43
+ add_message "lnrpc.SendManyRequest" do
44
+ map :AddrToAmount, :string, :int64, 1
45
+ end
46
+ add_message "lnrpc.SendManyResponse" do
47
+ optional :txid, :string, 1
48
+ end
49
+ add_message "lnrpc.SendCoinsRequest" do
50
+ optional :addr, :string, 1
51
+ optional :amount, :int64, 2
52
+ end
53
+ add_message "lnrpc.SendCoinsResponse" do
54
+ optional :txid, :string, 1
55
+ end
56
+ add_message "lnrpc.NewAddressRequest" do
57
+ optional :type, :enum, 1, "lnrpc.NewAddressRequest.AddressType"
58
+ end
59
+ add_enum "lnrpc.NewAddressRequest.AddressType" do
60
+ value :WITNESS_PUBKEY_HASH, 0
61
+ value :NESTED_PUBKEY_HASH, 1
62
+ value :PUBKEY_HASH, 2
63
+ end
64
+ add_message "lnrpc.NewWitnessAddressRequest" do
65
+ end
66
+ add_message "lnrpc.NewAddressResponse" do
67
+ optional :address, :string, 1
68
+ end
69
+ add_message "lnrpc.ConnectPeerRequest" do
70
+ optional :addr, :message, 1, "lnrpc.LightningAddress"
71
+ optional :perm, :bool, 2
72
+ end
73
+ add_message "lnrpc.ConnectPeerResponse" do
74
+ optional :peer_id, :int32, 1
75
+ end
76
+ add_message "lnrpc.HTLC" do
77
+ optional :incoming, :bool, 1
78
+ optional :amount, :int64, 2
79
+ optional :hash_lock, :bytes, 3
80
+ optional :expiration_height, :uint32, 4
81
+ optional :revocation_delay, :uint32, 5
82
+ end
83
+ add_message "lnrpc.ActiveChannel" do
84
+ optional :remote_pubkey, :string, 1
85
+ optional :channel_point, :string, 2
86
+ optional :chan_id, :uint64, 3
87
+ optional :capacity, :int64, 4
88
+ optional :local_balance, :int64, 5
89
+ optional :remote_balance, :int64, 6
90
+ optional :unsettled_balance, :int64, 7
91
+ optional :total_satoshis_sent, :int64, 8
92
+ optional :total_satoshis_received, :int64, 9
93
+ optional :num_updates, :uint64, 10
94
+ repeated :pending_htlcs, :message, 11, "lnrpc.HTLC"
95
+ end
96
+ add_message "lnrpc.ListChannelsRequest" do
97
+ end
98
+ add_message "lnrpc.ListChannelsResponse" do
99
+ repeated :channels, :message, 11, "lnrpc.ActiveChannel"
100
+ end
101
+ add_message "lnrpc.Peer" do
102
+ optional :pub_key, :string, 1
103
+ optional :peer_id, :int32, 2
104
+ optional :address, :string, 3
105
+ optional :bytes_sent, :uint64, 4
106
+ optional :bytes_recv, :uint64, 5
107
+ optional :sat_sent, :int64, 6
108
+ optional :sat_recv, :int64, 7
109
+ optional :inbound, :bool, 8
110
+ optional :ping_time, :int64, 9
111
+ end
112
+ add_message "lnrpc.ListPeersRequest" do
113
+ end
114
+ add_message "lnrpc.ListPeersResponse" do
115
+ repeated :peers, :message, 1, "lnrpc.Peer"
116
+ end
117
+ add_message "lnrpc.GetInfoRequest" do
118
+ end
119
+ add_message "lnrpc.GetInfoResponse" do
120
+ optional :identity_pubkey, :string, 1
121
+ optional :alias, :string, 2
122
+ optional :num_pending_channels, :uint32, 3
123
+ optional :num_active_channels, :uint32, 4
124
+ optional :num_peers, :uint32, 5
125
+ optional :block_height, :uint32, 6
126
+ optional :block_hash, :string, 8
127
+ optional :synced_to_chain, :bool, 9
128
+ optional :testnet, :bool, 10
129
+ end
130
+ add_message "lnrpc.ConfirmationUpdate" do
131
+ optional :block_sha, :bytes, 1
132
+ optional :block_height, :int32, 2
133
+ optional :num_confs_left, :uint32, 3
134
+ end
135
+ add_message "lnrpc.ChannelOpenUpdate" do
136
+ optional :channel_point, :message, 1, "lnrpc.ChannelPoint"
137
+ end
138
+ add_message "lnrpc.ChannelCloseUpdate" do
139
+ optional :closing_txid, :bytes, 1
140
+ optional :success, :bool, 2
141
+ end
142
+ add_message "lnrpc.CloseChannelRequest" do
143
+ optional :channel_point, :message, 1, "lnrpc.ChannelPoint"
144
+ optional :time_limit, :int64, 2
145
+ optional :force, :bool, 3
146
+ end
147
+ add_message "lnrpc.CloseStatusUpdate" do
148
+ oneof :update do
149
+ optional :close_pending, :message, 1, "lnrpc.PendingUpdate"
150
+ optional :confirmation, :message, 2, "lnrpc.ConfirmationUpdate"
151
+ optional :chan_close, :message, 3, "lnrpc.ChannelCloseUpdate"
152
+ end
153
+ end
154
+ add_message "lnrpc.PendingUpdate" do
155
+ optional :txid, :bytes, 1
156
+ optional :output_index, :uint32, 2
157
+ end
158
+ add_message "lnrpc.OpenChannelRequest" do
159
+ optional :target_peer_id, :int32, 1
160
+ optional :node_pubkey, :bytes, 2
161
+ optional :node_pubkey_string, :string, 3
162
+ optional :local_funding_amount, :int64, 4
163
+ optional :push_sat, :int64, 5
164
+ optional :num_confs, :uint32, 6
165
+ end
166
+ add_message "lnrpc.OpenStatusUpdate" do
167
+ oneof :update do
168
+ optional :chan_pending, :message, 1, "lnrpc.PendingUpdate"
169
+ optional :confirmation, :message, 2, "lnrpc.ConfirmationUpdate"
170
+ optional :chan_open, :message, 3, "lnrpc.ChannelOpenUpdate"
171
+ end
172
+ end
173
+ add_message "lnrpc.PendingChannelRequest" do
174
+ optional :status, :enum, 1, "lnrpc.ChannelStatus"
175
+ end
176
+ add_message "lnrpc.PendingChannelResponse" do
177
+ repeated :pending_channels, :message, 1, "lnrpc.PendingChannelResponse.PendingChannel"
178
+ end
179
+ add_message "lnrpc.PendingChannelResponse.PendingChannel" do
180
+ optional :identity_key, :string, 1
181
+ optional :channel_point, :string, 2
182
+ optional :capacity, :int64, 3
183
+ optional :local_balance, :int64, 4
184
+ optional :remote_balance, :int64, 5
185
+ optional :closing_txid, :string, 6
186
+ optional :status, :enum, 7, "lnrpc.ChannelStatus"
187
+ end
188
+ add_message "lnrpc.WalletBalanceRequest" do
189
+ optional :witness_only, :bool, 1
190
+ end
191
+ add_message "lnrpc.WalletBalanceResponse" do
192
+ optional :balance, :double, 1
193
+ end
194
+ add_message "lnrpc.ChannelBalanceRequest" do
195
+ end
196
+ add_message "lnrpc.ChannelBalanceResponse" do
197
+ optional :balance, :int64, 1
198
+ end
199
+ add_message "lnrpc.RouteRequest" do
200
+ optional :pub_key, :string, 1
201
+ optional :amt, :int64, 2
202
+ end
203
+ add_message "lnrpc.Hop" do
204
+ optional :chan_id, :uint64, 1
205
+ optional :chan_capacity, :int64, 2
206
+ optional :amt_to_forward, :int64, 3
207
+ optional :fee, :int64, 4
208
+ end
209
+ add_message "lnrpc.Route" do
210
+ optional :total_time_lock, :uint32, 1
211
+ optional :total_fees, :int64, 2
212
+ optional :total_amt, :int64, 3
213
+ repeated :hops, :message, 4, "lnrpc.Hop"
214
+ end
215
+ add_message "lnrpc.NodeInfoRequest" do
216
+ optional :pub_key, :string, 1
217
+ end
218
+ add_message "lnrpc.NodeInfo" do
219
+ optional :node, :message, 1, "lnrpc.LightningNode"
220
+ optional :num_channels, :uint32, 2
221
+ optional :total_capacity, :int64, 3
222
+ end
223
+ add_message "lnrpc.LightningNode" do
224
+ optional :last_update, :uint32, 1
225
+ optional :pub_key, :string, 2
226
+ optional :address, :string, 3
227
+ optional :alias, :string, 4
228
+ end
229
+ add_message "lnrpc.RoutingPolicy" do
230
+ optional :time_lock_delta, :uint32, 1
231
+ optional :min_htlc, :int64, 2
232
+ optional :fee_base_msat, :int64, 3
233
+ optional :fee_rate_milli_msat, :int64, 4
234
+ end
235
+ add_message "lnrpc.ChannelEdge" do
236
+ optional :channel_id, :uint64, 1
237
+ optional :chan_point, :string, 2
238
+ optional :last_update, :uint32, 3
239
+ optional :node1_pub, :string, 4
240
+ optional :node2_pub, :string, 5
241
+ optional :capacity, :int64, 6
242
+ optional :node1_policy, :message, 7, "lnrpc.RoutingPolicy"
243
+ optional :node2_policy, :message, 8, "lnrpc.RoutingPolicy"
244
+ end
245
+ add_message "lnrpc.ChannelGraphRequest" do
246
+ end
247
+ add_message "lnrpc.ChannelGraph" do
248
+ repeated :nodes, :message, 1, "lnrpc.LightningNode"
249
+ repeated :edges, :message, 2, "lnrpc.ChannelEdge"
250
+ end
251
+ add_message "lnrpc.ChanInfoRequest" do
252
+ optional :chan_id, :uint64, 1
253
+ end
254
+ add_message "lnrpc.NetworkInfoRequest" do
255
+ end
256
+ add_message "lnrpc.NetworkInfo" do
257
+ optional :graph_diameter, :uint32, 1
258
+ optional :avg_out_degree, :double, 2
259
+ optional :max_out_degree, :uint32, 3
260
+ optional :num_nodes, :uint32, 4
261
+ optional :num_channels, :uint32, 5
262
+ optional :total_network_capacity, :int64, 6
263
+ optional :avg_channel_size, :double, 7
264
+ optional :min_channel_size, :int64, 8
265
+ optional :max_channel_size, :int64, 9
266
+ end
267
+ add_message "lnrpc.SetAliasRequest" do
268
+ optional :new_alias, :string, 1
269
+ end
270
+ add_message "lnrpc.SetAliasResponse" do
271
+ end
272
+ add_message "lnrpc.Invoice" do
273
+ optional :memo, :string, 1
274
+ optional :receipt, :bytes, 2
275
+ optional :r_preimage, :bytes, 3
276
+ optional :r_hash, :bytes, 4
277
+ optional :value, :int64, 5
278
+ optional :settled, :bool, 6
279
+ optional :creation_date, :int64, 7
280
+ optional :settle_date, :int64, 8
281
+ optional :payment_request, :string, 9
282
+ end
283
+ add_message "lnrpc.AddInvoiceResponse" do
284
+ optional :r_hash, :bytes, 1
285
+ optional :payment_request, :string, 2
286
+ end
287
+ add_message "lnrpc.PaymentHash" do
288
+ optional :r_hash_str, :string, 1
289
+ optional :r_hash, :bytes, 2
290
+ end
291
+ add_message "lnrpc.ListInvoiceRequest" do
292
+ optional :pending_only, :bool, 1
293
+ end
294
+ add_message "lnrpc.ListInvoiceResponse" do
295
+ repeated :invoices, :message, 1, "lnrpc.Invoice"
296
+ end
297
+ add_message "lnrpc.InvoiceSubscription" do
298
+ end
299
+ add_message "lnrpc.Payment" do
300
+ optional :payment_hash, :string, 1
301
+ optional :value, :int64, 2
302
+ optional :creation_date, :int64, 3
303
+ repeated :path, :string, 4
304
+ optional :fee, :int64, 5
305
+ end
306
+ add_message "lnrpc.ListPaymentsRequest" do
307
+ end
308
+ add_message "lnrpc.ListPaymentsResponse" do
309
+ repeated :payments, :message, 1, "lnrpc.Payment"
310
+ end
311
+ add_message "lnrpc.DeleteAllPaymentsRequest" do
312
+ end
313
+ add_message "lnrpc.DeleteAllPaymentsResponse" do
314
+ end
315
+ add_message "lnrpc.DebugLevelRequest" do
316
+ optional :show, :bool, 1
317
+ optional :level_spec, :string, 2
318
+ end
319
+ add_message "lnrpc.DebugLevelResponse" do
320
+ optional :sub_systems, :string, 1
321
+ end
322
+ add_message "lnrpc.PayReqString" do
323
+ optional :pay_req, :string, 1
324
+ end
325
+ add_message "lnrpc.PayReq" do
326
+ optional :destination, :string, 1
327
+ optional :payment_hash, :string, 2
328
+ optional :num_satoshis, :int64, 3
329
+ end
330
+ add_enum "lnrpc.ChannelStatus" do
331
+ value :ALL, 0
332
+ value :OPENING, 1
333
+ value :CLOSING, 2
334
+ end
335
+ end
336
+
337
+ module Lnrpc
338
+ Transaction = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Transaction").msgclass
339
+ GetTransactionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GetTransactionsRequest").msgclass
340
+ TransactionDetails = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.TransactionDetails").msgclass
341
+ SendRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendRequest").msgclass
342
+ SendResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendResponse").msgclass
343
+ ChannelPoint = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelPoint").msgclass
344
+ LightningAddress = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.LightningAddress").msgclass
345
+ SendManyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendManyRequest").msgclass
346
+ SendManyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendManyResponse").msgclass
347
+ SendCoinsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendCoinsRequest").msgclass
348
+ SendCoinsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendCoinsResponse").msgclass
349
+ NewAddressRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NewAddressRequest").msgclass
350
+ NewAddressRequest::AddressType = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NewAddressRequest.AddressType").enummodule
351
+ NewWitnessAddressRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NewWitnessAddressRequest").msgclass
352
+ NewAddressResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NewAddressResponse").msgclass
353
+ ConnectPeerRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ConnectPeerRequest").msgclass
354
+ ConnectPeerResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ConnectPeerResponse").msgclass
355
+ HTLC = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.HTLC").msgclass
356
+ ActiveChannel = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ActiveChannel").msgclass
357
+ ListChannelsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListChannelsRequest").msgclass
358
+ ListChannelsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListChannelsResponse").msgclass
359
+ Peer = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Peer").msgclass
360
+ ListPeersRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPeersRequest").msgclass
361
+ ListPeersResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPeersResponse").msgclass
362
+ GetInfoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GetInfoRequest").msgclass
363
+ GetInfoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GetInfoResponse").msgclass
364
+ ConfirmationUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ConfirmationUpdate").msgclass
365
+ ChannelOpenUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelOpenUpdate").msgclass
366
+ ChannelCloseUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelCloseUpdate").msgclass
367
+ CloseChannelRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.CloseChannelRequest").msgclass
368
+ CloseStatusUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.CloseStatusUpdate").msgclass
369
+ PendingUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingUpdate").msgclass
370
+ OpenChannelRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.OpenChannelRequest").msgclass
371
+ OpenStatusUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.OpenStatusUpdate").msgclass
372
+ PendingChannelRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelRequest").msgclass
373
+ PendingChannelResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelResponse").msgclass
374
+ PendingChannelResponse::PendingChannel = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelResponse.PendingChannel").msgclass
375
+ WalletBalanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.WalletBalanceRequest").msgclass
376
+ WalletBalanceResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.WalletBalanceResponse").msgclass
377
+ ChannelBalanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBalanceRequest").msgclass
378
+ ChannelBalanceResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBalanceResponse").msgclass
379
+ RouteRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.RouteRequest").msgclass
380
+ Hop = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Hop").msgclass
381
+ Route = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Route").msgclass
382
+ NodeInfoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeInfoRequest").msgclass
383
+ NodeInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeInfo").msgclass
384
+ LightningNode = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.LightningNode").msgclass
385
+ RoutingPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.RoutingPolicy").msgclass
386
+ ChannelEdge = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEdge").msgclass
387
+ ChannelGraphRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelGraphRequest").msgclass
388
+ ChannelGraph = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelGraph").msgclass
389
+ ChanInfoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChanInfoRequest").msgclass
390
+ NetworkInfoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NetworkInfoRequest").msgclass
391
+ NetworkInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NetworkInfo").msgclass
392
+ SetAliasRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SetAliasRequest").msgclass
393
+ SetAliasResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SetAliasResponse").msgclass
394
+ Invoice = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Invoice").msgclass
395
+ AddInvoiceResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AddInvoiceResponse").msgclass
396
+ PaymentHash = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PaymentHash").msgclass
397
+ ListInvoiceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListInvoiceRequest").msgclass
398
+ ListInvoiceResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListInvoiceResponse").msgclass
399
+ InvoiceSubscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.InvoiceSubscription").msgclass
400
+ Payment = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Payment").msgclass
401
+ ListPaymentsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPaymentsRequest").msgclass
402
+ ListPaymentsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPaymentsResponse").msgclass
403
+ DeleteAllPaymentsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DeleteAllPaymentsRequest").msgclass
404
+ DeleteAllPaymentsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DeleteAllPaymentsResponse").msgclass
405
+ DebugLevelRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DebugLevelRequest").msgclass
406
+ DebugLevelResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DebugLevelResponse").msgclass
407
+ PayReqString = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PayReqString").msgclass
408
+ PayReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PayReq").msgclass
409
+ ChannelStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelStatus").enummodule
410
+ end
@@ -0,0 +1,55 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: rpc.proto for package 'lnrpc'
3
+
4
+ require 'grpc'
5
+ require 'rpc_pb'
6
+
7
+ module Lnrpc
8
+ module Lightning
9
+ class Service
10
+
11
+ include GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'lnrpc.Lightning'
16
+
17
+ rpc :WalletBalance, WalletBalanceRequest, WalletBalanceResponse
18
+ rpc :ChannelBalance, ChannelBalanceRequest, ChannelBalanceResponse
19
+ rpc :GetTransactions, GetTransactionsRequest, TransactionDetails
20
+ rpc :SendCoins, SendCoinsRequest, SendCoinsResponse
21
+ rpc :SubscribeTransactions, GetTransactionsRequest, stream(Transaction)
22
+ rpc :SendMany, SendManyRequest, SendManyResponse
23
+ rpc :NewAddress, NewAddressRequest, NewAddressResponse
24
+ rpc :NewWitnessAddress, NewWitnessAddressRequest, NewAddressResponse
25
+ rpc :ConnectPeer, ConnectPeerRequest, ConnectPeerResponse
26
+ rpc :ListPeers, ListPeersRequest, ListPeersResponse
27
+ rpc :GetInfo, GetInfoRequest, GetInfoResponse
28
+ # TODO(roasbeef): merge with below with bool?
29
+ rpc :PendingChannels, PendingChannelRequest, PendingChannelResponse
30
+ rpc :ListChannels, ListChannelsRequest, ListChannelsResponse
31
+ rpc :OpenChannelSync, OpenChannelRequest, ChannelPoint
32
+ rpc :OpenChannel, OpenChannelRequest, stream(OpenStatusUpdate)
33
+ rpc :CloseChannel, CloseChannelRequest, stream(CloseStatusUpdate)
34
+ rpc :SendPayment, stream(SendRequest), stream(SendResponse)
35
+ rpc :SendPaymentSync, SendRequest, SendResponse
36
+ rpc :AddInvoice, Invoice, AddInvoiceResponse
37
+ rpc :ListInvoices, ListInvoiceRequest, ListInvoiceResponse
38
+ rpc :LookupInvoice, PaymentHash, Invoice
39
+ rpc :SubscribeInvoices, InvoiceSubscription, stream(Invoice)
40
+ rpc :DecodePayReq, PayReqString, PayReq
41
+ rpc :ListPayments, ListPaymentsRequest, ListPaymentsResponse
42
+ rpc :DeleteAllPayments, DeleteAllPaymentsRequest, DeleteAllPaymentsResponse
43
+ rpc :DescribeGraph, ChannelGraphRequest, ChannelGraph
44
+ rpc :GetChanInfo, ChanInfoRequest, ChannelEdge
45
+ rpc :GetNodeInfo, NodeInfoRequest, NodeInfo
46
+ rpc :QueryRoute, RouteRequest, Route
47
+ rpc :GetNetworkInfo, NetworkInfoRequest, NetworkInfo
48
+ rpc :SetAlias, SetAliasRequest, SetAliasResponse
49
+ rpc :DebugLevel, DebugLevelRequest, DebugLevelResponse
50
+ rpc :ConnectExternalInvoiceGenerator, stream(Invoice), stream(PaymentHash)
51
+ end
52
+
53
+ Stub = Service.rpc_stub_class
54
+ end
55
+ end
@@ -0,0 +1,3 @@
1
+ module RubyLndGrpcClient
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,6 @@
1
+ require "ruby_lnd_grpc_client/version"
2
+ require 'rpc_service_pb'
3
+
4
+ module RubyLndGrpcClient
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ruby_lnd_grpc_client/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ruby_lnd_grpc_client"
8
+ spec.version = RubyLndGrpcClient::VERSION
9
+ spec.authors = ["Vladyslav Budichenko"]
10
+ spec.email = ["lightning@bitfury.com"]
11
+
12
+ spec.summary = %q{grpc lnd client}
13
+ spec.description = %q{This is grpc client for lnd v0.2.1-alpha. Is generated code from rpc.proto}
14
+ spec.license = "MIT"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ #if spec.respond_to?(:metadata)
19
+ # spec.metadata['allowed_push_host'] = "http://mygemserver.com"
20
+ #else
21
+ # raise "RubyGems 2.0 or newer is required to protect against " \
22
+ # "public gem pushes."
23
+ #end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
26
+ f.match(%r{^(test|spec|features)/})
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_development_dependency "bundler", "~> 1.14"
33
+ spec.add_development_dependency "rake", "~> 10.0"
34
+ end
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby_lnd_grpc_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Vladyslav Budichenko
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: This is grpc client for lnd v0.2.1-alpha. Is generated code from rpc.proto
42
+ email:
43
+ - lightning@bitfury.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - bin/console
54
+ - bin/setup
55
+ - lib/.rpc_pb.rb.swp
56
+ - lib/google/api/annotations_pb.rb
57
+ - lib/google/api/http_pb.rb
58
+ - lib/rpc_pb.rb
59
+ - lib/rpc_services_pb.rb
60
+ - lib/ruby_lnd_grpc_client.rb
61
+ - lib/ruby_lnd_grpc_client/version.rb
62
+ - ruby_lnd_grpc_client.gemspec
63
+ homepage:
64
+ licenses:
65
+ - MIT
66
+ metadata: {}
67
+ post_install_message:
68
+ rdoc_options: []
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ requirements: []
82
+ rubyforge_project:
83
+ rubygems_version: 2.5.1
84
+ signing_key:
85
+ specification_version: 4
86
+ summary: grpc lnd client
87
+ test_files: []