lnd-tool 0.1.0

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
+ SHA256:
3
+ metadata.gz: 29a0b231c3f98d1f7f9406ae0430144a2f6d9559df8ef7e320e88ce6ccaca60e
4
+ data.tar.gz: 5c667e772a6f07445e1b80be330f00c8aedb870d2f68c1f269cb0afe210ab2bc
5
+ SHA512:
6
+ metadata.gz: 76090b33c85bc4bad788e397ba35480905c5801b5f07813eb238dc19946eb7bc7b7a4412df7c9811beb08b05909b209437520c9a5452c126aa94c5caedb48092
7
+ data.tar.gz: fe4e971a7d10976797f34fb8c7093ae69e8c4bca542e57a32c74d13f61b4d0ed8e82e28d9397bd0b595d336456a15f344f84f8e5882a4a30c782aa802f0ddf30
@@ -0,0 +1,20 @@
1
+ name: Ruby
2
+
3
+ on: [push,pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ strategy:
8
+ fail-fast: true
9
+ matrix:
10
+ ruby: [2.6, 2.7, 3.0]
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true
19
+ - name: Run the default task
20
+ run: bundle exec rake
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ Gemfile.lock
10
+ config.yml
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-11-21
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at azuchi@chaintope.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in lnd-tool.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 azuchi
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,43 @@
1
+ # Lnd::Tool
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/lnd/tool`. 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 'lnd-tool'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install lnd-tool
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. Then, run `rake spec` to run the tests. 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 the created tag, 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]/lnd-tool. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/lnd-tool/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Lnd::Tool project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/lnd-tool/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "lnd/tool"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ 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
data/config.yml.sample ADDED
@@ -0,0 +1,5 @@
1
+ lnd:
2
+ credentials_path: 'Path to credential file like $LND_HOME/tls.cert.'
3
+ macaroon_path: 'Path to the macaroon file created by lnd like $LND_HOME/data/chain/bitcoin/mainnet/admin.macaroon'
4
+ host: 'lnd host'
5
+ port: 10009 # gRPC port
data/exe/lnd-tool ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'lnd/tool'
4
+ require 'thor'
5
+ require 'yaml'
6
+
7
+ # CLI class of lnd-tool
8
+ class CLI < Thor
9
+
10
+ class << self
11
+ def exit_on_failure?
12
+ true
13
+ end
14
+ end
15
+
16
+ desc 'capture_htlc --config "Path to configuration file"', 'Capture the HTLC events of LND.'
17
+ option :config, required: true, type: :string
18
+ def capture_htlc
19
+ raise Thor::Error, "config file #{options['config']} does not exist." unless File.exist?(options['config'])
20
+ raise Thor::Error, 'Capture process already running.' if LND::Tool::Daemon.running?
21
+
22
+ config = YAML.load_file(options['config'])
23
+ LND::Tool::Daemon.start do
24
+ capture = LND::Tool::HTLCEventCapture.new(config['lnd'])
25
+ capture.start
26
+ end
27
+ end
28
+
29
+ desc 'stop_capture', 'Stop capture process.'
30
+ def stop_capture
31
+ raise Thor::Error, 'Capture process not running.' unless LND::Tool::Daemon.running?
32
+
33
+ LND::Tool::Daemon.stop
34
+ end
35
+
36
+ end
37
+
38
+ CLI.start(ARGV)
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'pathname'
4
+
5
+ module LND
6
+ module Tool
7
+ # Daemon module for cli
8
+ module Daemon
9
+
10
+ module_function
11
+
12
+ # Get base directory path.
13
+ # @return [Pathname] directory path.
14
+ def base_dir
15
+ Pathname.new(File.expand_path("#{Dir.home}/.lnd-tool"))
16
+ end
17
+
18
+ # Get database file path.
19
+ # @return [Pathname] database file path.
20
+ def db_path
21
+ base_dir.join('storage.db')
22
+ end
23
+
24
+ # Get pid file path.
25
+ # @return [Pathname] pid file path.
26
+ def pid_path
27
+ base_dir.join('pid')
28
+ end
29
+
30
+ # Check whether pid file exist?
31
+ # @return [Boolean]
32
+ def pid_file?
33
+ pid_path.file?
34
+ end
35
+
36
+ # Check whether daemon running?
37
+ # @return [Boolean]
38
+ def running?
39
+ base_dir.exist? && pid_file? && Process.kill(0, pid_path.read.to_i) == 1
40
+ rescue Errno::ESRCH
41
+ false
42
+ end
43
+
44
+ # Stop daemon.
45
+ def stop
46
+ Process.kill('KILL', pid_path.read.to_i) if running?
47
+ end
48
+
49
+ # Start block program as daemon.
50
+ def start()
51
+ base_dir.mkdir unless base_dir.exist?
52
+ raise LND::Tool::Error, "process(#{pid_path.read.to_i}) already running." if running?
53
+
54
+ Process.daemon(true)
55
+ pid_path.write(Process.pid.to_s)
56
+ yield
57
+ ensure
58
+ pid_path.delete if pid_file?
59
+ end
60
+
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,28 @@
1
+ module LND
2
+ module Tool
3
+
4
+ # Use SubscribeHtlcEvents to get HTLC events from LND and store them in the DB.
5
+ class HTLCEventCapture
6
+
7
+ attr_reader :client
8
+
9
+ def initialize(config)
10
+ @client = Lnrpc::Client.new({
11
+ credentials_path: config['credentials_path'],
12
+ macaroon_path: config['macaroon_path'],
13
+ address: "#{config['host']}:#{config['port']}"
14
+ })
15
+ end
16
+
17
+ # Start capture.
18
+ def start
19
+ store = Store::HTLCEvent.new
20
+ client.router.subscribe_htlc_events.each do |htlc_event|
21
+ puts htlc_event
22
+ store.save(htlc_event)
23
+ end
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,78 @@
1
+ module LND
2
+ module Tool
3
+ module Store
4
+ # HTLC event store
5
+ class HTLCEvent < SQLiteBase
6
+
7
+ # Setup table.
8
+ def setup
9
+ query = <<~SQL
10
+ CREATE TABLE IF NOT EXISTS HtlcEvent(
11
+ id INTEGER PRIMARY KEY,
12
+ incoming_channel_id INTEGER,
13
+ outgoing_channel_id INTEGER,
14
+ incoming_htlc_id INTEGER,
15
+ outgoing_htlc_id INTEGER,
16
+ timestamp_ns INTEGER,
17
+ event_type TEXT,
18
+ forward_event TEXT,
19
+ forward_fail_event TEXT,
20
+ settle_event TEXT,
21
+ link_fail_event TEXT,
22
+ created_datetime TIMESTAMP DEFAULT (datetime(CURRENT_TIMESTAMP,'localtime')))
23
+ SQL
24
+ db.execute(query)
25
+ end
26
+
27
+ # Save htlc event.
28
+ # @param [Routerrpc::HtlcEvent] event HTLC event
29
+ def save(event)
30
+ query = <<~SQL
31
+ INSERT INTO HtlcEvent (incoming_channel_id, outgoing_channel_id,
32
+ incoming_htlc_id, outgoing_htlc_id, timestamp_ns, event_type, forward_event, forward_fail_event,
33
+ settle_event, link_fail_event) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
34
+ SQL
35
+ values = [
36
+ event.incoming_channel_id,
37
+ event.outgoing_channel_id,
38
+ event.incoming_htlc_id,
39
+ event.outgoing_htlc_id,
40
+ event.timestamp_ns,
41
+ event.event_type.to_s,
42
+ event.forward_event ? Routerrpc::ForwardEvent.encode_json(event.forward_event) : nil,
43
+ event.forward_fail_event ? Routerrpc::ForwardFailEvent.encode_json(event.forward_fail_event) : nil,
44
+ event.settle_event ? Routerrpc::SettleEvent.encode_json(event.settle_event) : nil,
45
+ event.link_fail_event ? Routerrpc::LinkFailEvent.encode_json(event.link_fail_event) : nil
46
+ ]
47
+ db.execute(query, values)
48
+ end
49
+
50
+ # Query all data.
51
+ # @return [Enumerator::Lazy]
52
+ def all
53
+ query = <<~SQL
54
+ SELECT incoming_channel_id, outgoing_channel_id,
55
+ incoming_htlc_id, outgoing_htlc_id, timestamp_ns, event_type, forward_event, forward_fail_event,
56
+ settle_event, link_fail_event FROM HtlcEvent ORDER BY created_datetime DESC
57
+ SQL
58
+ db.query(query).lazy.map do |result|
59
+ forward_event = result[6] ? Routerrpc::ForwardEvent.decode_json(result[6]) : nil
60
+ forward_fail_event = result[7] ? Routerrpc::ForwardFailEvent.decode_json(result[7]) : nil
61
+ settle_event = result[8] ? Routerrpc::SettleEvent.decode_json(result[8]) : nil
62
+ link_fail_event = result[9] ? Routerrpc::LinkFailEvent.decode_json(result[9]) : nil
63
+ Routerrpc::HtlcEvent.new(incoming_channel_id: result[0],
64
+ outgoing_channel_id: result[1],
65
+ incoming_htlc_id: result[2],
66
+ outgoing_htlc_id: result[3],
67
+ timestamp_ns: result[4],
68
+ event_type: result[5].to_sym,
69
+ forward_event: forward_event,
70
+ forward_fail_event: forward_fail_event,
71
+ settle_event: settle_event,
72
+ link_fail_event: link_fail_event)
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,24 @@
1
+ require 'sqlite3'
2
+
3
+ module LND
4
+ module Tool
5
+ module Store
6
+ # Abstract class for store.
7
+ class SQLiteBase
8
+
9
+ attr_reader :db
10
+
11
+ # Initialize data store.
12
+ # @param [Pathname] path data base path.
13
+ def initialize(path = Daemon.db_path)
14
+ @db = SQLite3::Database.new(path.to_s)
15
+ setup
16
+ end
17
+
18
+ def setup
19
+ raise Error, 'Inherit and implement the setup method.'
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,8 @@
1
+ module LND
2
+ module Tool
3
+ module Store
4
+ autoload :SQLiteBase, 'lnd/tool/store/sqlite_base'
5
+ autoload :HTLCEvent, 'lnd/tool/store/htlc_event'
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LND
4
+ module Tool
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
data/lib/lnd/tool.rb ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'tool/version'
4
+ require 'lnrpc'
5
+
6
+ module LND
7
+ module Tool
8
+ class Error < StandardError; end
9
+ # Your code goes here...
10
+
11
+ autoload :Daemon, 'lnd/tool/daemon'
12
+ autoload :Store, 'lnd/tool/store'
13
+ autoload :HTLCEventCapture, 'lnd/tool/htlc_event_capture'
14
+
15
+ end
16
+ end
data/lnd-tool.gemspec ADDED
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/lnd/tool/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'lnd-tool'
7
+ spec.version = LND::Tool::VERSION
8
+ spec.authors = ['azuchi']
9
+ spec.email = ['techmedia.think@gmail.com']
10
+
11
+ spec.summary = 'LND Tool - Ruby tools for LND'
12
+ spec.description = 'LND Tool - Ruby tools for LND'
13
+ spec.homepage = 'https://github.com/azuchi/lnd-tool'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 2.6.0'
16
+
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = spec.homepage
19
+ spec.metadata['changelog_uri'] = spec.homepage
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
25
+ end
26
+ spec.bindir = 'exe'
27
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ['lib']
29
+
30
+ # Uncomment to register a new dependency of your gem
31
+ spec.add_dependency 'lnrpc', '~> 0.13.0'
32
+ spec.add_dependency 'sqlite3', '~> 1.4.2'
33
+ spec.add_dependency 'thor', '~> 1.1.0'
34
+
35
+ spec.add_development_dependency 'rspec', '~> 3.0'
36
+
37
+ end
metadata ADDED
@@ -0,0 +1,124 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lnd-tool
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - azuchi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-11-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: lnrpc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.13.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.13.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.4.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.4.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: thor
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.1.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.1.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ description: LND Tool - Ruby tools for LND
70
+ email:
71
+ - techmedia.think@gmail.com
72
+ executables:
73
+ - lnd-tool
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".github/workflows/main.yml"
78
+ - ".gitignore"
79
+ - ".rspec"
80
+ - CHANGELOG.md
81
+ - CODE_OF_CONDUCT.md
82
+ - Gemfile
83
+ - LICENSE.txt
84
+ - README.md
85
+ - Rakefile
86
+ - bin/console
87
+ - bin/setup
88
+ - config.yml.sample
89
+ - exe/lnd-tool
90
+ - lib/lnd/tool.rb
91
+ - lib/lnd/tool/daemon.rb
92
+ - lib/lnd/tool/htlc_event_capture.rb
93
+ - lib/lnd/tool/store.rb
94
+ - lib/lnd/tool/store/htlc_event.rb
95
+ - lib/lnd/tool/store/sqlite_base.rb
96
+ - lib/lnd/tool/version.rb
97
+ - lnd-tool.gemspec
98
+ homepage: https://github.com/azuchi/lnd-tool
99
+ licenses:
100
+ - MIT
101
+ metadata:
102
+ homepage_uri: https://github.com/azuchi/lnd-tool
103
+ source_code_uri: https://github.com/azuchi/lnd-tool
104
+ changelog_uri: https://github.com/azuchi/lnd-tool
105
+ post_install_message:
106
+ rdoc_options: []
107
+ require_paths:
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: 2.6.0
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ requirements: []
120
+ rubygems_version: 3.2.3
121
+ signing_key:
122
+ specification_version: 4
123
+ summary: LND Tool - Ruby tools for LND
124
+ test_files: []