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 +4 -4
- data/README.md +8 -14
- data/lib/ruby_lnd_grpc_client/version.rb +1 -1
- data/lib/ruby_lnd_grpc_client.rb +1 -2
- data/ruby_lnd_grpc_client.gemspec +0 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37ded160fa4c86dbb769ceddd3cdd88a67176667
|
4
|
+
data.tar.gz: 05370212233c3764df47d0ae2ef5b44b9b47864f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52cfd7fd2ff9c03398d8d272918149a9293861d8b65ef98822f5f6f88f2f772357ddd81d7e4675fae7652b99da674f547d19ab2ab75d0cea5466716e0497cdc3
|
7
|
+
data.tar.gz: 1f8f6f41a2792426ddf94f777fa09dd04f31283b24dfbb314726564101a0b8f2e2b778a7b41a8cdcfe9368e97d7254ef941facda968ff5f966d4b650ecf300b3
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# RubyLndGrpcClient
|
2
2
|
|
3
|
-
|
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
|
-
|
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
|
|
data/lib/ruby_lnd_grpc_client.rb
CHANGED
@@ -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 '
|
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"]
|