lnd-client 0.0.1
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 +7 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +15 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +62 -0
- data/LICENSE +21 -0
- data/README.md +107 -0
- data/Rakefile +10 -0
- data/components/grpc/autopilotrpc/autopilot_pb.rb +48 -0
- data/components/grpc/autopilotrpc/autopilot_services_pb.rb +40 -0
- data/components/grpc/chainrpc/chainkit_pb.rb +36 -0
- data/components/grpc/chainrpc/chainkit_services_pb.rb +34 -0
- data/components/grpc/chainrpc/chainnotifier_pb.rb +69 -0
- data/components/grpc/chainrpc/chainnotifier_services_pb.rb +53 -0
- data/components/grpc/devrpc/dev_pb.rb +17 -0
- data/components/grpc/devrpc/dev_services_pb.rb +25 -0
- data/components/grpc/invoicesrpc/invoices_pb.rb +66 -0
- data/components/grpc/invoicesrpc/invoices_services_pb.rb +45 -0
- data/components/grpc/lightning_pb.rb +1621 -0
- data/components/grpc/lightning_services_pb.rb +441 -0
- data/components/grpc/lnclipb/lncli_pb.rb +19 -0
- data/components/grpc/neutrinorpc/neutrino_pb.rb +106 -0
- data/components/grpc/neutrinorpc/neutrino_services_pb.rb +51 -0
- data/components/grpc/peersrpc/peers_pb.rb +48 -0
- data/components/grpc/peersrpc/peers_services_pb.rb +27 -0
- data/components/grpc/routerrpc/router_pb.rb +299 -0
- data/components/grpc/routerrpc/router_services_pb.rb +115 -0
- data/components/grpc/signrpc/signer_pb.rb +172 -0
- data/components/grpc/signrpc/signer_services_pb.rb +134 -0
- data/components/grpc/stateservice_pb.rb +35 -0
- data/components/grpc/stateservice_services_pb.rb +46 -0
- data/components/grpc/verrpc/verrpc_pb.rb +27 -0
- data/components/grpc/verrpc/verrpc_services_pb.rb +27 -0
- data/components/grpc/walletrpc/walletkit_pb.rb +328 -0
- data/components/grpc/walletrpc/walletkit_services_pb.rb +230 -0
- data/components/grpc/walletunlocker_pb.rb +75 -0
- data/components/grpc/walletunlocker_services_pb.rb +72 -0
- data/components/grpc/watchtowerrpc/watchtower_pb.rb +21 -0
- data/components/grpc/watchtowerrpc/watchtower_services_pb.rb +28 -0
- data/components/grpc/wtclientrpc/wtclient_pb.rb +83 -0
- data/components/grpc/wtclientrpc/wtclient_services_pb.rb +43 -0
- data/components/grpc.rb +9 -0
- data/controllers/client.rb +31 -0
- data/controllers/config.rb +35 -0
- data/controllers/documentation.rb +45 -0
- data/controllers/grpc_generator.rb +80 -0
- data/controllers/service.rb +35 -0
- data/lnd-client.gemspec +35 -0
- data/logic/string.rb +11 -0
- data/ports/dsl/lnd-client.rb +14 -0
- data/static/spec.rb +13 -0
- metadata +110 -0
@@ -0,0 +1,45 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: invoicesrpc/invoices.proto for package 'invoicesrpc'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require_relative 'invoicesrpc/invoices_pb'
|
6
|
+
|
7
|
+
module Invoicesrpc
|
8
|
+
module Invoices
|
9
|
+
# Invoices is a service that can be used to create, accept, settle and cancel
|
10
|
+
# invoices.
|
11
|
+
class Service
|
12
|
+
|
13
|
+
include ::GRPC::GenericService
|
14
|
+
|
15
|
+
self.marshal_class_method = :encode
|
16
|
+
self.unmarshal_class_method = :decode
|
17
|
+
self.service_name = 'invoicesrpc.Invoices'
|
18
|
+
|
19
|
+
#
|
20
|
+
# SubscribeSingleInvoice returns a uni-directional stream (server -> client)
|
21
|
+
# to notify the client of state transitions of the specified invoice.
|
22
|
+
# Initially the current invoice state is always sent out.
|
23
|
+
rpc :SubscribeSingleInvoice, ::Invoicesrpc::SubscribeSingleInvoiceRequest, stream(::Lnrpc::Invoice)
|
24
|
+
#
|
25
|
+
# CancelInvoice cancels a currently open invoice. If the invoice is already
|
26
|
+
# canceled, this call will succeed. If the invoice is already settled, it will
|
27
|
+
# fail.
|
28
|
+
rpc :CancelInvoice, ::Invoicesrpc::CancelInvoiceMsg, ::Invoicesrpc::CancelInvoiceResp
|
29
|
+
#
|
30
|
+
# AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
|
31
|
+
# supplied in the request.
|
32
|
+
rpc :AddHoldInvoice, ::Invoicesrpc::AddHoldInvoiceRequest, ::Invoicesrpc::AddHoldInvoiceResp
|
33
|
+
#
|
34
|
+
# SettleInvoice settles an accepted invoice. If the invoice is already
|
35
|
+
# settled, this call will succeed.
|
36
|
+
rpc :SettleInvoice, ::Invoicesrpc::SettleInvoiceMsg, ::Invoicesrpc::SettleInvoiceResp
|
37
|
+
#
|
38
|
+
# LookupInvoiceV2 attempts to look up at invoice. An invoice can be refrenced
|
39
|
+
# using either its payment hash, payment address, or set ID.
|
40
|
+
rpc :LookupInvoiceV2, ::Invoicesrpc::LookupInvoiceMsg, ::Lnrpc::Invoice
|
41
|
+
end
|
42
|
+
|
43
|
+
Stub = Service.rpc_stub_class
|
44
|
+
end
|
45
|
+
end
|