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.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.rubocop.yml +15 -0
  4. data/Gemfile +16 -0
  5. data/Gemfile.lock +62 -0
  6. data/LICENSE +21 -0
  7. data/README.md +107 -0
  8. data/Rakefile +10 -0
  9. data/components/grpc/autopilotrpc/autopilot_pb.rb +48 -0
  10. data/components/grpc/autopilotrpc/autopilot_services_pb.rb +40 -0
  11. data/components/grpc/chainrpc/chainkit_pb.rb +36 -0
  12. data/components/grpc/chainrpc/chainkit_services_pb.rb +34 -0
  13. data/components/grpc/chainrpc/chainnotifier_pb.rb +69 -0
  14. data/components/grpc/chainrpc/chainnotifier_services_pb.rb +53 -0
  15. data/components/grpc/devrpc/dev_pb.rb +17 -0
  16. data/components/grpc/devrpc/dev_services_pb.rb +25 -0
  17. data/components/grpc/invoicesrpc/invoices_pb.rb +66 -0
  18. data/components/grpc/invoicesrpc/invoices_services_pb.rb +45 -0
  19. data/components/grpc/lightning_pb.rb +1621 -0
  20. data/components/grpc/lightning_services_pb.rb +441 -0
  21. data/components/grpc/lnclipb/lncli_pb.rb +19 -0
  22. data/components/grpc/neutrinorpc/neutrino_pb.rb +106 -0
  23. data/components/grpc/neutrinorpc/neutrino_services_pb.rb +51 -0
  24. data/components/grpc/peersrpc/peers_pb.rb +48 -0
  25. data/components/grpc/peersrpc/peers_services_pb.rb +27 -0
  26. data/components/grpc/routerrpc/router_pb.rb +299 -0
  27. data/components/grpc/routerrpc/router_services_pb.rb +115 -0
  28. data/components/grpc/signrpc/signer_pb.rb +172 -0
  29. data/components/grpc/signrpc/signer_services_pb.rb +134 -0
  30. data/components/grpc/stateservice_pb.rb +35 -0
  31. data/components/grpc/stateservice_services_pb.rb +46 -0
  32. data/components/grpc/verrpc/verrpc_pb.rb +27 -0
  33. data/components/grpc/verrpc/verrpc_services_pb.rb +27 -0
  34. data/components/grpc/walletrpc/walletkit_pb.rb +328 -0
  35. data/components/grpc/walletrpc/walletkit_services_pb.rb +230 -0
  36. data/components/grpc/walletunlocker_pb.rb +75 -0
  37. data/components/grpc/walletunlocker_services_pb.rb +72 -0
  38. data/components/grpc/watchtowerrpc/watchtower_pb.rb +21 -0
  39. data/components/grpc/watchtowerrpc/watchtower_services_pb.rb +28 -0
  40. data/components/grpc/wtclientrpc/wtclient_pb.rb +83 -0
  41. data/components/grpc/wtclientrpc/wtclient_services_pb.rb +43 -0
  42. data/components/grpc.rb +9 -0
  43. data/controllers/client.rb +31 -0
  44. data/controllers/config.rb +35 -0
  45. data/controllers/documentation.rb +45 -0
  46. data/controllers/grpc_generator.rb +80 -0
  47. data/controllers/service.rb +35 -0
  48. data/lnd-client.gemspec +35 -0
  49. data/logic/string.rb +11 -0
  50. data/ports/dsl/lnd-client.rb +14 -0
  51. data/static/spec.rb +13 -0
  52. metadata +110 -0
@@ -0,0 +1,134 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: signrpc/signer.proto for package 'signrpc'
3
+
4
+ require 'grpc'
5
+ require_relative 'signrpc/signer_pb'
6
+
7
+ module Signrpc
8
+ module Signer
9
+ # Signer is a service that gives access to the signing functionality of the
10
+ # daemon's wallet.
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 = 'signrpc.Signer'
18
+
19
+ #
20
+ # SignOutputRaw is a method that can be used to generated a signature for a
21
+ # set of inputs/outputs to a transaction. Each request specifies details
22
+ # concerning how the outputs should be signed, which keys they should be
23
+ # signed with, and also any optional tweaks. The return value is a fixed
24
+ # 64-byte signature (the same format as we use on the wire in Lightning).
25
+ #
26
+ # If we are unable to sign using the specified keys, then an error will be
27
+ # returned.
28
+ rpc :SignOutputRaw, ::Signrpc::SignReq, ::Signrpc::SignResp
29
+ #
30
+ # ComputeInputScript generates a complete InputIndex for the passed
31
+ # transaction with the signature as defined within the passed SignDescriptor.
32
+ # This method should be capable of generating the proper input script for both
33
+ # regular p2wkh/p2tr outputs and p2wkh outputs nested within a regular p2sh
34
+ # output.
35
+ #
36
+ # Note that when using this method to sign inputs belonging to the wallet,
37
+ # the only items of the SignDescriptor that need to be populated are pkScript
38
+ # in the TxOut field, the value in that same field, and finally the input
39
+ # index.
40
+ rpc :ComputeInputScript, ::Signrpc::SignReq, ::Signrpc::InputScriptResp
41
+ #
42
+ # SignMessage signs a message with the key specified in the key locator. The
43
+ # returned signature is fixed-size LN wire format encoded.
44
+ #
45
+ # The main difference to SignMessage in the main RPC is that a specific key is
46
+ # used to sign the message instead of the node identity private key.
47
+ rpc :SignMessage, ::Signrpc::SignMessageReq, ::Signrpc::SignMessageResp
48
+ #
49
+ # VerifyMessage verifies a signature over a message using the public key
50
+ # provided. The signature must be fixed-size LN wire format encoded.
51
+ #
52
+ # The main difference to VerifyMessage in the main RPC is that the public key
53
+ # used to sign the message does not have to be a node known to the network.
54
+ rpc :VerifyMessage, ::Signrpc::VerifyMessageReq, ::Signrpc::VerifyMessageResp
55
+ #
56
+ # DeriveSharedKey returns a shared secret key by performing Diffie-Hellman key
57
+ # derivation between the ephemeral public key in the request and the node's
58
+ # key specified in the key_desc parameter. Either a key locator or a raw
59
+ # public key is expected in the key_desc, if neither is supplied, defaults to
60
+ # the node's identity private key:
61
+ # P_shared = privKeyNode * ephemeralPubkey
62
+ # The resulting shared public key is serialized in the compressed format and
63
+ # hashed with sha256, resulting in the final key length of 256bit.
64
+ rpc :DeriveSharedKey, ::Signrpc::SharedKeyRequest, ::Signrpc::SharedKeyResponse
65
+ #
66
+ # MuSig2CombineKeys (experimental!) is a stateless helper RPC that can be used
67
+ # to calculate the combined MuSig2 public key from a list of all participating
68
+ # signers' public keys. This RPC is completely stateless and deterministic and
69
+ # does not create any signing session. It can be used to determine the Taproot
70
+ # public key that should be put in an on-chain output once all public keys are
71
+ # known. A signing session is only needed later when that output should be
72
+ # _spent_ again.
73
+ #
74
+ # NOTE: The MuSig2 BIP is not final yet and therefore this API must be
75
+ # considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
76
+ # releases. Backward compatibility is not guaranteed!
77
+ rpc :MuSig2CombineKeys, ::Signrpc::MuSig2CombineKeysRequest, ::Signrpc::MuSig2CombineKeysResponse
78
+ #
79
+ # MuSig2CreateSession (experimental!) creates a new MuSig2 signing session
80
+ # using the local key identified by the key locator. The complete list of all
81
+ # public keys of all signing parties must be provided, including the public
82
+ # key of the local signing key. If nonces of other parties are already known,
83
+ # they can be submitted as well to reduce the number of RPC calls necessary
84
+ # later on.
85
+ #
86
+ # NOTE: The MuSig2 BIP is not final yet and therefore this API must be
87
+ # considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
88
+ # releases. Backward compatibility is not guaranteed!
89
+ rpc :MuSig2CreateSession, ::Signrpc::MuSig2SessionRequest, ::Signrpc::MuSig2SessionResponse
90
+ #
91
+ # MuSig2RegisterNonces (experimental!) registers one or more public nonces of
92
+ # other signing participants for a session identified by its ID. This RPC can
93
+ # be called multiple times until all nonces are registered.
94
+ #
95
+ # NOTE: The MuSig2 BIP is not final yet and therefore this API must be
96
+ # considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
97
+ # releases. Backward compatibility is not guaranteed!
98
+ rpc :MuSig2RegisterNonces, ::Signrpc::MuSig2RegisterNoncesRequest, ::Signrpc::MuSig2RegisterNoncesResponse
99
+ #
100
+ # MuSig2Sign (experimental!) creates a partial signature using the local
101
+ # signing key that was specified when the session was created. This can only
102
+ # be called when all public nonces of all participants are known and have been
103
+ # registered with the session. If this node isn't responsible for combining
104
+ # all the partial signatures, then the cleanup flag should be set, indicating
105
+ # that the session can be removed from memory once the signature was produced.
106
+ #
107
+ # NOTE: The MuSig2 BIP is not final yet and therefore this API must be
108
+ # considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
109
+ # releases. Backward compatibility is not guaranteed!
110
+ rpc :MuSig2Sign, ::Signrpc::MuSig2SignRequest, ::Signrpc::MuSig2SignResponse
111
+ #
112
+ # MuSig2CombineSig (experimental!) combines the given partial signature(s)
113
+ # with the local one, if it already exists. Once a partial signature of all
114
+ # participants is registered, the final signature will be combined and
115
+ # returned.
116
+ #
117
+ # NOTE: The MuSig2 BIP is not final yet and therefore this API must be
118
+ # considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
119
+ # releases. Backward compatibility is not guaranteed!
120
+ rpc :MuSig2CombineSig, ::Signrpc::MuSig2CombineSigRequest, ::Signrpc::MuSig2CombineSigResponse
121
+ #
122
+ # MuSig2Cleanup (experimental!) allows a caller to clean up a session early in
123
+ # cases where it's obvious that the signing session won't succeed and the
124
+ # resources can be released.
125
+ #
126
+ # NOTE: The MuSig2 BIP is not final yet and therefore this API must be
127
+ # considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
128
+ # releases. Backward compatibility is not guaranteed!
129
+ rpc :MuSig2Cleanup, ::Signrpc::MuSig2CleanupRequest, ::Signrpc::MuSig2CleanupResponse
130
+ end
131
+
132
+ Stub = Service.rpc_stub_class
133
+ end
134
+ end
@@ -0,0 +1,35 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: stateservice.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("stateservice.proto", :syntax => :proto3) do
8
+ add_message "lnrpc.SubscribeStateRequest" do
9
+ end
10
+ add_message "lnrpc.SubscribeStateResponse" do
11
+ optional :state, :enum, 1, "lnrpc.WalletState"
12
+ end
13
+ add_message "lnrpc.GetStateRequest" do
14
+ end
15
+ add_message "lnrpc.GetStateResponse" do
16
+ optional :state, :enum, 1, "lnrpc.WalletState"
17
+ end
18
+ add_enum "lnrpc.WalletState" do
19
+ value :NON_EXISTING, 0
20
+ value :LOCKED, 1
21
+ value :UNLOCKED, 2
22
+ value :RPC_ACTIVE, 3
23
+ value :SERVER_ACTIVE, 4
24
+ value :WAITING_TO_START, 255
25
+ end
26
+ end
27
+ end
28
+
29
+ module Lnrpc
30
+ SubscribeStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SubscribeStateRequest").msgclass
31
+ SubscribeStateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SubscribeStateResponse").msgclass
32
+ GetStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GetStateRequest").msgclass
33
+ GetStateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GetStateResponse").msgclass
34
+ WalletState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.WalletState").enummodule
35
+ end
@@ -0,0 +1,46 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: stateservice.proto for package 'lnrpc'
3
+
4
+ require 'grpc'
5
+ require_relative 'stateservice_pb'
6
+
7
+ module Lnrpc
8
+ module State
9
+ #
10
+ # Comments in this file will be directly parsed into the API
11
+ # Documentation as descriptions of the associated method, message, or field.
12
+ # These descriptions should go right above the definition of the object, and
13
+ # can be in either block or // comment format.
14
+ #
15
+ # An RPC method can be matched to an lncli command by placing a line in the
16
+ # beginning of the description in exactly the following format:
17
+ # lncli: `methodname`
18
+ #
19
+ # Failure to specify the exact name of the command will cause documentation
20
+ # generation to fail.
21
+ #
22
+ # More information on how exactly the gRPC documentation is generated from
23
+ # this proto file can be found here:
24
+ # https://github.com/lightninglabs/lightning-api
25
+ #
26
+ # State service is a always running service that exposes the current state of
27
+ # the wallet and RPC server.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'lnrpc.State'
35
+
36
+ # SubscribeState subscribes to the state of the wallet. The current wallet
37
+ # state will always be delivered immediately.
38
+ rpc :SubscribeState, ::Lnrpc::SubscribeStateRequest, stream(::Lnrpc::SubscribeStateResponse)
39
+ # GetState returns the current wallet state without streaming further
40
+ # changes.
41
+ rpc :GetState, ::Lnrpc::GetStateRequest, ::Lnrpc::GetStateResponse
42
+ end
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: verrpc/verrpc.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("verrpc/verrpc.proto", :syntax => :proto3) do
8
+ add_message "verrpc.VersionRequest" do
9
+ end
10
+ add_message "verrpc.Version" do
11
+ optional :commit, :string, 1
12
+ optional :commit_hash, :string, 2
13
+ optional :version, :string, 3
14
+ optional :app_major, :uint32, 4
15
+ optional :app_minor, :uint32, 5
16
+ optional :app_patch, :uint32, 6
17
+ optional :app_pre_release, :string, 7
18
+ repeated :build_tags, :string, 8
19
+ optional :go_version, :string, 9
20
+ end
21
+ end
22
+ end
23
+
24
+ module Verrpc
25
+ VersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("verrpc.VersionRequest").msgclass
26
+ Version = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("verrpc.Version").msgclass
27
+ end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: verrpc/verrpc.proto for package 'verrpc'
3
+
4
+ require 'grpc'
5
+ require_relative 'verrpc/verrpc_pb'
6
+
7
+ module Verrpc
8
+ module Versioner
9
+ # Versioner is a service that can be used to get information about the version
10
+ # and build information of the running daemon.
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 = 'verrpc.Versioner'
18
+
19
+ # lncli: `version`
20
+ # GetVersion returns the current version and build information of the running
21
+ # daemon.
22
+ rpc :GetVersion, ::Verrpc::VersionRequest, ::Verrpc::Version
23
+ end
24
+
25
+ Stub = Service.rpc_stub_class
26
+ end
27
+ end
@@ -0,0 +1,328 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: walletrpc/walletkit.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require_relative 'lightning_pb'
7
+ require_relative 'signrpc/signer_pb'
8
+
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("walletrpc/walletkit.proto", :syntax => :proto3) do
11
+ add_message "walletrpc.ListUnspentRequest" do
12
+ optional :min_confs, :int32, 1
13
+ optional :max_confs, :int32, 2
14
+ optional :account, :string, 3
15
+ optional :unconfirmed_only, :bool, 4
16
+ end
17
+ add_message "walletrpc.ListUnspentResponse" do
18
+ repeated :utxos, :message, 1, "lnrpc.Utxo"
19
+ end
20
+ add_message "walletrpc.LeaseOutputRequest" do
21
+ optional :id, :bytes, 1
22
+ optional :outpoint, :message, 2, "lnrpc.OutPoint"
23
+ optional :expiration_seconds, :uint64, 3
24
+ end
25
+ add_message "walletrpc.LeaseOutputResponse" do
26
+ optional :expiration, :uint64, 1
27
+ end
28
+ add_message "walletrpc.ReleaseOutputRequest" do
29
+ optional :id, :bytes, 1
30
+ optional :outpoint, :message, 2, "lnrpc.OutPoint"
31
+ end
32
+ add_message "walletrpc.ReleaseOutputResponse" do
33
+ end
34
+ add_message "walletrpc.KeyReq" do
35
+ optional :key_finger_print, :int32, 1
36
+ optional :key_family, :int32, 2
37
+ end
38
+ add_message "walletrpc.AddrRequest" do
39
+ optional :account, :string, 1
40
+ optional :type, :enum, 2, "walletrpc.AddressType"
41
+ optional :change, :bool, 3
42
+ end
43
+ add_message "walletrpc.AddrResponse" do
44
+ optional :addr, :string, 1
45
+ end
46
+ add_message "walletrpc.Account" do
47
+ optional :name, :string, 1
48
+ optional :address_type, :enum, 2, "walletrpc.AddressType"
49
+ optional :extended_public_key, :string, 3
50
+ optional :master_key_fingerprint, :bytes, 4
51
+ optional :derivation_path, :string, 5
52
+ optional :external_key_count, :uint32, 6
53
+ optional :internal_key_count, :uint32, 7
54
+ optional :watch_only, :bool, 8
55
+ end
56
+ add_message "walletrpc.AddressProperty" do
57
+ optional :address, :string, 1
58
+ optional :is_internal, :bool, 2
59
+ optional :balance, :int64, 3
60
+ end
61
+ add_message "walletrpc.AccountWithAddresses" do
62
+ optional :name, :string, 1
63
+ optional :address_type, :enum, 2, "walletrpc.AddressType"
64
+ optional :derivation_path, :string, 3
65
+ repeated :addresses, :message, 4, "walletrpc.AddressProperty"
66
+ end
67
+ add_message "walletrpc.ListAccountsRequest" do
68
+ optional :name, :string, 1
69
+ optional :address_type, :enum, 2, "walletrpc.AddressType"
70
+ end
71
+ add_message "walletrpc.ListAccountsResponse" do
72
+ repeated :accounts, :message, 1, "walletrpc.Account"
73
+ end
74
+ add_message "walletrpc.RequiredReserveRequest" do
75
+ optional :additional_public_channels, :uint32, 1
76
+ end
77
+ add_message "walletrpc.RequiredReserveResponse" do
78
+ optional :required_reserve, :int64, 1
79
+ end
80
+ add_message "walletrpc.ListAddressesRequest" do
81
+ optional :account_name, :string, 1
82
+ optional :show_custom_accounts, :bool, 2
83
+ end
84
+ add_message "walletrpc.ListAddressesResponse" do
85
+ repeated :account_with_addresses, :message, 1, "walletrpc.AccountWithAddresses"
86
+ end
87
+ add_message "walletrpc.ImportAccountRequest" do
88
+ optional :name, :string, 1
89
+ optional :extended_public_key, :string, 2
90
+ optional :master_key_fingerprint, :bytes, 3
91
+ optional :address_type, :enum, 4, "walletrpc.AddressType"
92
+ optional :dry_run, :bool, 5
93
+ end
94
+ add_message "walletrpc.ImportAccountResponse" do
95
+ optional :account, :message, 1, "walletrpc.Account"
96
+ repeated :dry_run_external_addrs, :string, 2
97
+ repeated :dry_run_internal_addrs, :string, 3
98
+ end
99
+ add_message "walletrpc.ImportPublicKeyRequest" do
100
+ optional :public_key, :bytes, 1
101
+ optional :address_type, :enum, 2, "walletrpc.AddressType"
102
+ end
103
+ add_message "walletrpc.ImportPublicKeyResponse" do
104
+ end
105
+ add_message "walletrpc.ImportTapscriptRequest" do
106
+ optional :internal_public_key, :bytes, 1
107
+ oneof :script do
108
+ optional :full_tree, :message, 2, "walletrpc.TapscriptFullTree"
109
+ optional :partial_reveal, :message, 3, "walletrpc.TapscriptPartialReveal"
110
+ optional :root_hash_only, :bytes, 4
111
+ optional :full_key_only, :bool, 5
112
+ end
113
+ end
114
+ add_message "walletrpc.TapscriptFullTree" do
115
+ repeated :all_leaves, :message, 1, "walletrpc.TapLeaf"
116
+ end
117
+ add_message "walletrpc.TapLeaf" do
118
+ optional :leaf_version, :uint32, 1
119
+ optional :script, :bytes, 2
120
+ end
121
+ add_message "walletrpc.TapscriptPartialReveal" do
122
+ optional :revealed_leaf, :message, 1, "walletrpc.TapLeaf"
123
+ optional :full_inclusion_proof, :bytes, 2
124
+ end
125
+ add_message "walletrpc.ImportTapscriptResponse" do
126
+ optional :p2tr_address, :string, 1
127
+ end
128
+ add_message "walletrpc.Transaction" do
129
+ optional :tx_hex, :bytes, 1
130
+ optional :label, :string, 2
131
+ end
132
+ add_message "walletrpc.PublishResponse" do
133
+ optional :publish_error, :string, 1
134
+ end
135
+ add_message "walletrpc.SendOutputsRequest" do
136
+ optional :sat_per_kw, :int64, 1
137
+ repeated :outputs, :message, 2, "signrpc.TxOut"
138
+ optional :label, :string, 3
139
+ optional :min_confs, :int32, 4
140
+ optional :spend_unconfirmed, :bool, 5
141
+ end
142
+ add_message "walletrpc.SendOutputsResponse" do
143
+ optional :raw_tx, :bytes, 1
144
+ end
145
+ add_message "walletrpc.EstimateFeeRequest" do
146
+ optional :conf_target, :int32, 1
147
+ end
148
+ add_message "walletrpc.EstimateFeeResponse" do
149
+ optional :sat_per_kw, :int64, 1
150
+ end
151
+ add_message "walletrpc.PendingSweep" do
152
+ optional :outpoint, :message, 1, "lnrpc.OutPoint"
153
+ optional :witness_type, :enum, 2, "walletrpc.WitnessType"
154
+ optional :amount_sat, :uint32, 3
155
+ optional :sat_per_byte, :uint32, 4
156
+ optional :broadcast_attempts, :uint32, 5
157
+ optional :next_broadcast_height, :uint32, 6
158
+ optional :requested_conf_target, :uint32, 8
159
+ optional :requested_sat_per_byte, :uint32, 9
160
+ optional :sat_per_vbyte, :uint64, 10
161
+ optional :requested_sat_per_vbyte, :uint64, 11
162
+ optional :force, :bool, 7
163
+ end
164
+ add_message "walletrpc.PendingSweepsRequest" do
165
+ end
166
+ add_message "walletrpc.PendingSweepsResponse" do
167
+ repeated :pending_sweeps, :message, 1, "walletrpc.PendingSweep"
168
+ end
169
+ add_message "walletrpc.BumpFeeRequest" do
170
+ optional :outpoint, :message, 1, "lnrpc.OutPoint"
171
+ optional :target_conf, :uint32, 2
172
+ optional :sat_per_byte, :uint32, 3
173
+ optional :force, :bool, 4
174
+ optional :sat_per_vbyte, :uint64, 5
175
+ end
176
+ add_message "walletrpc.BumpFeeResponse" do
177
+ end
178
+ add_message "walletrpc.ListSweepsRequest" do
179
+ optional :verbose, :bool, 1
180
+ end
181
+ add_message "walletrpc.ListSweepsResponse" do
182
+ oneof :sweeps do
183
+ optional :transaction_details, :message, 1, "lnrpc.TransactionDetails"
184
+ optional :transaction_ids, :message, 2, "walletrpc.ListSweepsResponse.TransactionIDs"
185
+ end
186
+ end
187
+ add_message "walletrpc.ListSweepsResponse.TransactionIDs" do
188
+ repeated :transaction_ids, :string, 1
189
+ end
190
+ add_message "walletrpc.LabelTransactionRequest" do
191
+ optional :txid, :bytes, 1
192
+ optional :label, :string, 2
193
+ optional :overwrite, :bool, 3
194
+ end
195
+ add_message "walletrpc.LabelTransactionResponse" do
196
+ end
197
+ add_message "walletrpc.FundPsbtRequest" do
198
+ optional :account, :string, 5
199
+ optional :min_confs, :int32, 6
200
+ optional :spend_unconfirmed, :bool, 7
201
+ oneof :template do
202
+ optional :psbt, :bytes, 1
203
+ optional :raw, :message, 2, "walletrpc.TxTemplate"
204
+ end
205
+ oneof :fees do
206
+ optional :target_conf, :uint32, 3
207
+ optional :sat_per_vbyte, :uint64, 4
208
+ end
209
+ end
210
+ add_message "walletrpc.FundPsbtResponse" do
211
+ optional :funded_psbt, :bytes, 1
212
+ optional :change_output_index, :int32, 2
213
+ repeated :locked_utxos, :message, 3, "walletrpc.UtxoLease"
214
+ end
215
+ add_message "walletrpc.TxTemplate" do
216
+ repeated :inputs, :message, 1, "lnrpc.OutPoint"
217
+ map :outputs, :string, :uint64, 2
218
+ end
219
+ add_message "walletrpc.UtxoLease" do
220
+ optional :id, :bytes, 1
221
+ optional :outpoint, :message, 2, "lnrpc.OutPoint"
222
+ optional :expiration, :uint64, 3
223
+ optional :pk_script, :bytes, 4
224
+ optional :value, :uint64, 5
225
+ end
226
+ add_message "walletrpc.SignPsbtRequest" do
227
+ optional :funded_psbt, :bytes, 1
228
+ end
229
+ add_message "walletrpc.SignPsbtResponse" do
230
+ optional :signed_psbt, :bytes, 1
231
+ repeated :signed_inputs, :uint32, 2
232
+ end
233
+ add_message "walletrpc.FinalizePsbtRequest" do
234
+ optional :funded_psbt, :bytes, 1
235
+ optional :account, :string, 5
236
+ end
237
+ add_message "walletrpc.FinalizePsbtResponse" do
238
+ optional :signed_psbt, :bytes, 1
239
+ optional :raw_final_tx, :bytes, 2
240
+ end
241
+ add_message "walletrpc.ListLeasesRequest" do
242
+ end
243
+ add_message "walletrpc.ListLeasesResponse" do
244
+ repeated :locked_utxos, :message, 1, "walletrpc.UtxoLease"
245
+ end
246
+ add_enum "walletrpc.AddressType" do
247
+ value :UNKNOWN, 0
248
+ value :WITNESS_PUBKEY_HASH, 1
249
+ value :NESTED_WITNESS_PUBKEY_HASH, 2
250
+ value :HYBRID_NESTED_WITNESS_PUBKEY_HASH, 3
251
+ value :TAPROOT_PUBKEY, 4
252
+ end
253
+ add_enum "walletrpc.WitnessType" do
254
+ value :UNKNOWN_WITNESS, 0
255
+ value :COMMITMENT_TIME_LOCK, 1
256
+ value :COMMITMENT_NO_DELAY, 2
257
+ value :COMMITMENT_REVOKE, 3
258
+ value :HTLC_OFFERED_REVOKE, 4
259
+ value :HTLC_ACCEPTED_REVOKE, 5
260
+ value :HTLC_OFFERED_TIMEOUT_SECOND_LEVEL, 6
261
+ value :HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL, 7
262
+ value :HTLC_OFFERED_REMOTE_TIMEOUT, 8
263
+ value :HTLC_ACCEPTED_REMOTE_SUCCESS, 9
264
+ value :HTLC_SECOND_LEVEL_REVOKE, 10
265
+ value :WITNESS_KEY_HASH, 11
266
+ value :NESTED_WITNESS_KEY_HASH, 12
267
+ value :COMMITMENT_ANCHOR, 13
268
+ end
269
+ end
270
+ end
271
+
272
+ module Walletrpc
273
+ ListUnspentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListUnspentRequest").msgclass
274
+ ListUnspentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListUnspentResponse").msgclass
275
+ LeaseOutputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.LeaseOutputRequest").msgclass
276
+ LeaseOutputResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.LeaseOutputResponse").msgclass
277
+ ReleaseOutputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ReleaseOutputRequest").msgclass
278
+ ReleaseOutputResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ReleaseOutputResponse").msgclass
279
+ KeyReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.KeyReq").msgclass
280
+ AddrRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddrRequest").msgclass
281
+ AddrResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddrResponse").msgclass
282
+ Account = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.Account").msgclass
283
+ AddressProperty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddressProperty").msgclass
284
+ AccountWithAddresses = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AccountWithAddresses").msgclass
285
+ ListAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListAccountsRequest").msgclass
286
+ ListAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListAccountsResponse").msgclass
287
+ RequiredReserveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.RequiredReserveRequest").msgclass
288
+ RequiredReserveResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.RequiredReserveResponse").msgclass
289
+ ListAddressesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListAddressesRequest").msgclass
290
+ ListAddressesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListAddressesResponse").msgclass
291
+ ImportAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportAccountRequest").msgclass
292
+ ImportAccountResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportAccountResponse").msgclass
293
+ ImportPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportPublicKeyRequest").msgclass
294
+ ImportPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportPublicKeyResponse").msgclass
295
+ ImportTapscriptRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportTapscriptRequest").msgclass
296
+ TapscriptFullTree = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.TapscriptFullTree").msgclass
297
+ TapLeaf = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.TapLeaf").msgclass
298
+ TapscriptPartialReveal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.TapscriptPartialReveal").msgclass
299
+ ImportTapscriptResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportTapscriptResponse").msgclass
300
+ Transaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.Transaction").msgclass
301
+ PublishResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.PublishResponse").msgclass
302
+ SendOutputsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.SendOutputsRequest").msgclass
303
+ SendOutputsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.SendOutputsResponse").msgclass
304
+ EstimateFeeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.EstimateFeeRequest").msgclass
305
+ EstimateFeeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.EstimateFeeResponse").msgclass
306
+ PendingSweep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.PendingSweep").msgclass
307
+ PendingSweepsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.PendingSweepsRequest").msgclass
308
+ PendingSweepsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.PendingSweepsResponse").msgclass
309
+ BumpFeeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.BumpFeeRequest").msgclass
310
+ BumpFeeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.BumpFeeResponse").msgclass
311
+ ListSweepsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListSweepsRequest").msgclass
312
+ ListSweepsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListSweepsResponse").msgclass
313
+ ListSweepsResponse::TransactionIDs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListSweepsResponse.TransactionIDs").msgclass
314
+ LabelTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.LabelTransactionRequest").msgclass
315
+ LabelTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.LabelTransactionResponse").msgclass
316
+ FundPsbtRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FundPsbtRequest").msgclass
317
+ FundPsbtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FundPsbtResponse").msgclass
318
+ TxTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.TxTemplate").msgclass
319
+ UtxoLease = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.UtxoLease").msgclass
320
+ SignPsbtRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.SignPsbtRequest").msgclass
321
+ SignPsbtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.SignPsbtResponse").msgclass
322
+ FinalizePsbtRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FinalizePsbtRequest").msgclass
323
+ FinalizePsbtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FinalizePsbtResponse").msgclass
324
+ ListLeasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListLeasesRequest").msgclass
325
+ ListLeasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListLeasesResponse").msgclass
326
+ AddressType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddressType").enummodule
327
+ WitnessType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.WitnessType").enummodule
328
+ end