ruby_lnd_grpc_client 0.0.4 → 0.1.0

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
  SHA1:
3
- metadata.gz: d194f8f228eede906fd99b4c6b374fb0cf468f21
4
- data.tar.gz: 4ecbdb99f96b3b80864e47be494999a359d91f51
3
+ metadata.gz: 37ded160fa4c86dbb769ceddd3cdd88a67176667
4
+ data.tar.gz: 05370212233c3764df47d0ae2ef5b44b9b47864f
5
5
  SHA512:
6
- metadata.gz: 9e65eccbae430c6f1c58f82e469f575f3ff31ee6f9361201607ce6ec3ea5ebe334f33130cfa07be23c4e9f2b08c55201710df08c764303c3ee941d0050e186e4
7
- data.tar.gz: cbbe952f84357ec96cb2377150fbcf599dcbd73d3ba755dddafa21ff160ca272735eaf2d8b22da603f5670296b5ac4820a1b68806057941eae82c66da4bdf318
6
+ metadata.gz: 52cfd7fd2ff9c03398d8d272918149a9293861d8b65ef98822f5f6f88f2f772357ddd81d7e4675fae7652b99da674f547d19ab2ab75d0cea5466716e0497cdc3
7
+ data.tar.gz: 1f8f6f41a2792426ddf94f777fa09dd04f31283b24dfbb314726564101a0b8f2e2b778a7b41a8cdcfe9368e97d7254ef941facda968ff5f966d4b650ecf300b3
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # RubyLndGrpcClient
2
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
3
+ This is ruby grpc client for [lnd](https://github.com/lightningnetwork/lnd) v0.2.1-alpha. It is generated code
4
+ from [rpc.proto](https://github.com/lightningnetwork/lnd/blob/2486097554baf8fe61b4e531e42d3c725dd0fca5/lnrpc/rpc.proto).
6
5
 
7
6
  ## Installation
8
7
 
@@ -22,18 +21,13 @@ Or install it yourself as:
22
21
 
23
22
  ## Usage
24
23
 
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.
24
+ To use package you need to create client for you lnd and then make grpc calls.
36
25
 
26
+ ```ruby
27
+ client = Lnrpc::Lightning::Stub.new('127.0.0.1:10009', :this_channel_is_insecure) # you should put ip of your lnd
28
+ obj = Lnrpc::GetInfoRequest.new()
29
+ info = client.get_info(obj);
30
+ ```
37
31
 
38
32
  ## License
39
33
 
@@ -1,3 +1,3 @@
1
1
  module RubyLndGrpcClient
2
- VERSION = "0.0.4"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -3,8 +3,7 @@ lib_dir = File.join(this_dir, '../lib')
3
3
  $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
4
4
 
5
5
  require "ruby_lnd_grpc_client/version"
6
- require 'rpc_service_pb'
6
+ require 'rpc_services_pb'
7
7
 
8
8
  module RubyLndGrpcClient
9
- # Your code goes here...
10
9
  end
@@ -13,19 +13,9 @@ Gem::Specification.new do |spec|
13
13
  spec.description = %q{This is grpc client for lnd v0.2.1-alpha. Is generated code from rpc.proto}
14
14
  spec.license = "MIT"
15
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
16
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
26
17
  f.match(%r{^(test|spec|features)/})
27
18
  end
28
- #spec.files = Dir['lib/ *.rb'] + Dir['bin/*']
29
19
  spec.bindir = "exe"
30
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
21
  spec.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_lnd_grpc_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladyslav Budichenko