lnrpc 0.9.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +24 -24
- data/README.md +30 -16
- data/examples.rb +13 -6
- data/generate-grpc-service-files.sh +29 -0
- data/lib/grpc_services/autopilotrpc/autopilot_pb.rb +48 -0
- data/lib/grpc_services/autopilotrpc/autopilot_services_pb.rb +40 -0
- data/lib/grpc_services/chainrpc/chainnotifier_pb.rb +67 -0
- data/lib/grpc_services/chainrpc/chainnotifier_services_pb.rb +51 -0
- data/lib/grpc_services/invoicesrpc/invoices_pb.rb +48 -0
- data/lib/grpc_services/invoicesrpc/invoices_services_pb.rb +41 -0
- data/lib/grpc_services/lnclipb/lncli_pb.rb +18 -0
- data/lib/grpc_services/routerrpc/router_pb.rb +277 -0
- data/lib/grpc_services/routerrpc/router_services_pb.rb +105 -0
- data/lib/grpc_services/rpc_pb.rb +1388 -0
- data/lib/{lnrpc → grpc_services}/rpc_services_pb.rb +165 -178
- data/lib/grpc_services/signrpc/signer_pb.rb +84 -0
- data/lib/grpc_services/signrpc/signer_services_pb.rb +69 -0
- data/lib/grpc_services/verrpc/verrpc_pb.rb +27 -0
- data/lib/grpc_services/verrpc/verrpc_services_pb.rb +27 -0
- data/lib/grpc_services/walletrpc/walletkit_pb.rb +254 -0
- data/lib/grpc_services/walletrpc/walletkit_services_pb.rb +188 -0
- data/lib/grpc_services/walletunlocker_pb.rb +57 -0
- data/lib/grpc_services/walletunlocker_services_pb.rb +72 -0
- data/lib/grpc_services/watchtowerrpc/watchtower_pb.rb +21 -0
- data/lib/grpc_services/watchtowerrpc/watchtower_services_pb.rb +28 -0
- data/lib/grpc_services/wtclientrpc/wtclient_pb.rb +83 -0
- data/lib/grpc_services/wtclientrpc/wtclient_services_pb.rb +43 -0
- data/lib/lnrpc.rb +19 -3
- data/lib/lnrpc/client.rb +62 -46
- data/lib/lnrpc/grpc_wrapper.rb +43 -0
- data/lib/lnrpc/version.rb +1 -1
- data/lnrpc.gemspec +7 -5
- metadata +41 -17
- data/lib/lnrpc/rpc.proto +0 -3075
- data/lib/lnrpc/rpc_pb.rb +0 -1082
@@ -0,0 +1,84 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: signrpc/signer.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("signrpc/signer.proto", :syntax => :proto3) do
|
8
|
+
add_message "signrpc.KeyLocator" do
|
9
|
+
optional :key_family, :int32, 1
|
10
|
+
optional :key_index, :int32, 2
|
11
|
+
end
|
12
|
+
add_message "signrpc.KeyDescriptor" do
|
13
|
+
optional :raw_key_bytes, :bytes, 1
|
14
|
+
optional :key_loc, :message, 2, "signrpc.KeyLocator"
|
15
|
+
end
|
16
|
+
add_message "signrpc.TxOut" do
|
17
|
+
optional :value, :int64, 1
|
18
|
+
optional :pk_script, :bytes, 2
|
19
|
+
end
|
20
|
+
add_message "signrpc.SignDescriptor" do
|
21
|
+
optional :key_desc, :message, 1, "signrpc.KeyDescriptor"
|
22
|
+
optional :single_tweak, :bytes, 2
|
23
|
+
optional :double_tweak, :bytes, 3
|
24
|
+
optional :witness_script, :bytes, 4
|
25
|
+
optional :output, :message, 5, "signrpc.TxOut"
|
26
|
+
optional :sighash, :uint32, 7
|
27
|
+
optional :input_index, :int32, 8
|
28
|
+
end
|
29
|
+
add_message "signrpc.SignReq" do
|
30
|
+
optional :raw_tx_bytes, :bytes, 1
|
31
|
+
repeated :sign_descs, :message, 2, "signrpc.SignDescriptor"
|
32
|
+
end
|
33
|
+
add_message "signrpc.SignResp" do
|
34
|
+
repeated :raw_sigs, :bytes, 1
|
35
|
+
end
|
36
|
+
add_message "signrpc.InputScript" do
|
37
|
+
repeated :witness, :bytes, 1
|
38
|
+
optional :sig_script, :bytes, 2
|
39
|
+
end
|
40
|
+
add_message "signrpc.InputScriptResp" do
|
41
|
+
repeated :input_scripts, :message, 1, "signrpc.InputScript"
|
42
|
+
end
|
43
|
+
add_message "signrpc.SignMessageReq" do
|
44
|
+
optional :msg, :bytes, 1
|
45
|
+
optional :key_loc, :message, 2, "signrpc.KeyLocator"
|
46
|
+
end
|
47
|
+
add_message "signrpc.SignMessageResp" do
|
48
|
+
optional :signature, :bytes, 1
|
49
|
+
end
|
50
|
+
add_message "signrpc.VerifyMessageReq" do
|
51
|
+
optional :msg, :bytes, 1
|
52
|
+
optional :signature, :bytes, 2
|
53
|
+
optional :pubkey, :bytes, 3
|
54
|
+
end
|
55
|
+
add_message "signrpc.VerifyMessageResp" do
|
56
|
+
optional :valid, :bool, 1
|
57
|
+
end
|
58
|
+
add_message "signrpc.SharedKeyRequest" do
|
59
|
+
optional :ephemeral_pubkey, :bytes, 1
|
60
|
+
optional :key_loc, :message, 2, "signrpc.KeyLocator"
|
61
|
+
optional :key_desc, :message, 3, "signrpc.KeyDescriptor"
|
62
|
+
end
|
63
|
+
add_message "signrpc.SharedKeyResponse" do
|
64
|
+
optional :shared_key, :bytes, 1
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
module Signrpc
|
70
|
+
KeyLocator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.KeyLocator").msgclass
|
71
|
+
KeyDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.KeyDescriptor").msgclass
|
72
|
+
TxOut = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.TxOut").msgclass
|
73
|
+
SignDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignDescriptor").msgclass
|
74
|
+
SignReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignReq").msgclass
|
75
|
+
SignResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignResp").msgclass
|
76
|
+
InputScript = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.InputScript").msgclass
|
77
|
+
InputScriptResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.InputScriptResp").msgclass
|
78
|
+
SignMessageReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignMessageReq").msgclass
|
79
|
+
SignMessageResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignMessageResp").msgclass
|
80
|
+
VerifyMessageReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.VerifyMessageReq").msgclass
|
81
|
+
VerifyMessageResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.VerifyMessageResp").msgclass
|
82
|
+
SharedKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SharedKeyRequest").msgclass
|
83
|
+
SharedKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SharedKeyResponse").msgclass
|
84
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: signrpc/signer.proto for package 'signrpc'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require '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
|
33
|
+
# both regular p2wkh output 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
|
+
end
|
66
|
+
|
67
|
+
Stub = Service.rpc_stub_class
|
68
|
+
end
|
69
|
+
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 '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,254 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: walletrpc/walletkit.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'rpc_pb'
|
7
|
+
require 'signrpc/signer_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("walletrpc/walletkit.proto", :syntax => :proto3) do
|
10
|
+
add_message "walletrpc.ListUnspentRequest" do
|
11
|
+
optional :min_confs, :int32, 1
|
12
|
+
optional :max_confs, :int32, 2
|
13
|
+
optional :account, :string, 3
|
14
|
+
end
|
15
|
+
add_message "walletrpc.ListUnspentResponse" do
|
16
|
+
repeated :utxos, :message, 1, "lnrpc.Utxo"
|
17
|
+
end
|
18
|
+
add_message "walletrpc.LeaseOutputRequest" do
|
19
|
+
optional :id, :bytes, 1
|
20
|
+
optional :outpoint, :message, 2, "lnrpc.OutPoint"
|
21
|
+
optional :expiration_seconds, :uint64, 3
|
22
|
+
end
|
23
|
+
add_message "walletrpc.LeaseOutputResponse" do
|
24
|
+
optional :expiration, :uint64, 1
|
25
|
+
end
|
26
|
+
add_message "walletrpc.ReleaseOutputRequest" do
|
27
|
+
optional :id, :bytes, 1
|
28
|
+
optional :outpoint, :message, 2, "lnrpc.OutPoint"
|
29
|
+
end
|
30
|
+
add_message "walletrpc.ReleaseOutputResponse" do
|
31
|
+
end
|
32
|
+
add_message "walletrpc.KeyReq" do
|
33
|
+
optional :key_finger_print, :int32, 1
|
34
|
+
optional :key_family, :int32, 2
|
35
|
+
end
|
36
|
+
add_message "walletrpc.AddrRequest" do
|
37
|
+
optional :account, :string, 1
|
38
|
+
end
|
39
|
+
add_message "walletrpc.AddrResponse" do
|
40
|
+
optional :addr, :string, 1
|
41
|
+
end
|
42
|
+
add_message "walletrpc.Account" do
|
43
|
+
optional :name, :string, 1
|
44
|
+
optional :address_type, :enum, 2, "walletrpc.AddressType"
|
45
|
+
optional :extended_public_key, :string, 3
|
46
|
+
optional :master_key_fingerprint, :bytes, 4
|
47
|
+
optional :derivation_path, :string, 5
|
48
|
+
optional :external_key_count, :uint32, 6
|
49
|
+
optional :internal_key_count, :uint32, 7
|
50
|
+
optional :watch_only, :bool, 8
|
51
|
+
end
|
52
|
+
add_message "walletrpc.ListAccountsRequest" do
|
53
|
+
optional :name, :string, 1
|
54
|
+
optional :address_type, :enum, 2, "walletrpc.AddressType"
|
55
|
+
end
|
56
|
+
add_message "walletrpc.ListAccountsResponse" do
|
57
|
+
repeated :accounts, :message, 1, "walletrpc.Account"
|
58
|
+
end
|
59
|
+
add_message "walletrpc.ImportAccountRequest" do
|
60
|
+
optional :name, :string, 1
|
61
|
+
optional :extended_public_key, :string, 2
|
62
|
+
optional :master_key_fingerprint, :bytes, 3
|
63
|
+
optional :address_type, :enum, 4, "walletrpc.AddressType"
|
64
|
+
optional :dry_run, :bool, 5
|
65
|
+
end
|
66
|
+
add_message "walletrpc.ImportAccountResponse" do
|
67
|
+
optional :account, :message, 1, "walletrpc.Account"
|
68
|
+
repeated :dry_run_external_addrs, :string, 2
|
69
|
+
repeated :dry_run_internal_addrs, :string, 3
|
70
|
+
end
|
71
|
+
add_message "walletrpc.ImportPublicKeyRequest" do
|
72
|
+
optional :public_key, :bytes, 1
|
73
|
+
optional :address_type, :enum, 2, "walletrpc.AddressType"
|
74
|
+
end
|
75
|
+
add_message "walletrpc.ImportPublicKeyResponse" do
|
76
|
+
end
|
77
|
+
add_message "walletrpc.Transaction" do
|
78
|
+
optional :tx_hex, :bytes, 1
|
79
|
+
optional :label, :string, 2
|
80
|
+
end
|
81
|
+
add_message "walletrpc.PublishResponse" do
|
82
|
+
optional :publish_error, :string, 1
|
83
|
+
end
|
84
|
+
add_message "walletrpc.SendOutputsRequest" do
|
85
|
+
optional :sat_per_kw, :int64, 1
|
86
|
+
repeated :outputs, :message, 2, "signrpc.TxOut"
|
87
|
+
optional :label, :string, 3
|
88
|
+
optional :min_confs, :int32, 4
|
89
|
+
optional :spend_unconfirmed, :bool, 5
|
90
|
+
end
|
91
|
+
add_message "walletrpc.SendOutputsResponse" do
|
92
|
+
optional :raw_tx, :bytes, 1
|
93
|
+
end
|
94
|
+
add_message "walletrpc.EstimateFeeRequest" do
|
95
|
+
optional :conf_target, :int32, 1
|
96
|
+
end
|
97
|
+
add_message "walletrpc.EstimateFeeResponse" do
|
98
|
+
optional :sat_per_kw, :int64, 1
|
99
|
+
end
|
100
|
+
add_message "walletrpc.PendingSweep" do
|
101
|
+
optional :outpoint, :message, 1, "lnrpc.OutPoint"
|
102
|
+
optional :witness_type, :enum, 2, "walletrpc.WitnessType"
|
103
|
+
optional :amount_sat, :uint32, 3
|
104
|
+
optional :sat_per_byte, :uint32, 4
|
105
|
+
optional :broadcast_attempts, :uint32, 5
|
106
|
+
optional :next_broadcast_height, :uint32, 6
|
107
|
+
optional :requested_conf_target, :uint32, 8
|
108
|
+
optional :requested_sat_per_byte, :uint32, 9
|
109
|
+
optional :sat_per_vbyte, :uint64, 10
|
110
|
+
optional :requested_sat_per_vbyte, :uint64, 11
|
111
|
+
optional :force, :bool, 7
|
112
|
+
end
|
113
|
+
add_message "walletrpc.PendingSweepsRequest" do
|
114
|
+
end
|
115
|
+
add_message "walletrpc.PendingSweepsResponse" do
|
116
|
+
repeated :pending_sweeps, :message, 1, "walletrpc.PendingSweep"
|
117
|
+
end
|
118
|
+
add_message "walletrpc.BumpFeeRequest" do
|
119
|
+
optional :outpoint, :message, 1, "lnrpc.OutPoint"
|
120
|
+
optional :target_conf, :uint32, 2
|
121
|
+
optional :sat_per_byte, :uint32, 3
|
122
|
+
optional :force, :bool, 4
|
123
|
+
optional :sat_per_vbyte, :uint64, 5
|
124
|
+
end
|
125
|
+
add_message "walletrpc.BumpFeeResponse" do
|
126
|
+
end
|
127
|
+
add_message "walletrpc.ListSweepsRequest" do
|
128
|
+
optional :verbose, :bool, 1
|
129
|
+
end
|
130
|
+
add_message "walletrpc.ListSweepsResponse" do
|
131
|
+
oneof :sweeps do
|
132
|
+
optional :transaction_details, :message, 1, "lnrpc.TransactionDetails"
|
133
|
+
optional :transaction_ids, :message, 2, "walletrpc.ListSweepsResponse.TransactionIDs"
|
134
|
+
end
|
135
|
+
end
|
136
|
+
add_message "walletrpc.ListSweepsResponse.TransactionIDs" do
|
137
|
+
repeated :transaction_ids, :string, 1
|
138
|
+
end
|
139
|
+
add_message "walletrpc.LabelTransactionRequest" do
|
140
|
+
optional :txid, :bytes, 1
|
141
|
+
optional :label, :string, 2
|
142
|
+
optional :overwrite, :bool, 3
|
143
|
+
end
|
144
|
+
add_message "walletrpc.LabelTransactionResponse" do
|
145
|
+
end
|
146
|
+
add_message "walletrpc.FundPsbtRequest" do
|
147
|
+
optional :account, :string, 5
|
148
|
+
optional :min_confs, :int32, 6
|
149
|
+
optional :spend_unconfirmed, :bool, 7
|
150
|
+
oneof :template do
|
151
|
+
optional :psbt, :bytes, 1
|
152
|
+
optional :raw, :message, 2, "walletrpc.TxTemplate"
|
153
|
+
end
|
154
|
+
oneof :fees do
|
155
|
+
optional :target_conf, :uint32, 3
|
156
|
+
optional :sat_per_vbyte, :uint64, 4
|
157
|
+
end
|
158
|
+
end
|
159
|
+
add_message "walletrpc.FundPsbtResponse" do
|
160
|
+
optional :funded_psbt, :bytes, 1
|
161
|
+
optional :change_output_index, :int32, 2
|
162
|
+
repeated :locked_utxos, :message, 3, "walletrpc.UtxoLease"
|
163
|
+
end
|
164
|
+
add_message "walletrpc.TxTemplate" do
|
165
|
+
repeated :inputs, :message, 1, "lnrpc.OutPoint"
|
166
|
+
map :outputs, :string, :uint64, 2
|
167
|
+
end
|
168
|
+
add_message "walletrpc.UtxoLease" do
|
169
|
+
optional :id, :bytes, 1
|
170
|
+
optional :outpoint, :message, 2, "lnrpc.OutPoint"
|
171
|
+
optional :expiration, :uint64, 3
|
172
|
+
end
|
173
|
+
add_message "walletrpc.FinalizePsbtRequest" do
|
174
|
+
optional :funded_psbt, :bytes, 1
|
175
|
+
optional :account, :string, 5
|
176
|
+
end
|
177
|
+
add_message "walletrpc.FinalizePsbtResponse" do
|
178
|
+
optional :signed_psbt, :bytes, 1
|
179
|
+
optional :raw_final_tx, :bytes, 2
|
180
|
+
end
|
181
|
+
add_message "walletrpc.ListLeasesRequest" do
|
182
|
+
end
|
183
|
+
add_message "walletrpc.ListLeasesResponse" do
|
184
|
+
repeated :locked_utxos, :message, 1, "walletrpc.UtxoLease"
|
185
|
+
end
|
186
|
+
add_enum "walletrpc.AddressType" do
|
187
|
+
value :UNKNOWN, 0
|
188
|
+
value :WITNESS_PUBKEY_HASH, 1
|
189
|
+
value :NESTED_WITNESS_PUBKEY_HASH, 2
|
190
|
+
value :HYBRID_NESTED_WITNESS_PUBKEY_HASH, 3
|
191
|
+
end
|
192
|
+
add_enum "walletrpc.WitnessType" do
|
193
|
+
value :UNKNOWN_WITNESS, 0
|
194
|
+
value :COMMITMENT_TIME_LOCK, 1
|
195
|
+
value :COMMITMENT_NO_DELAY, 2
|
196
|
+
value :COMMITMENT_REVOKE, 3
|
197
|
+
value :HTLC_OFFERED_REVOKE, 4
|
198
|
+
value :HTLC_ACCEPTED_REVOKE, 5
|
199
|
+
value :HTLC_OFFERED_TIMEOUT_SECOND_LEVEL, 6
|
200
|
+
value :HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL, 7
|
201
|
+
value :HTLC_OFFERED_REMOTE_TIMEOUT, 8
|
202
|
+
value :HTLC_ACCEPTED_REMOTE_SUCCESS, 9
|
203
|
+
value :HTLC_SECOND_LEVEL_REVOKE, 10
|
204
|
+
value :WITNESS_KEY_HASH, 11
|
205
|
+
value :NESTED_WITNESS_KEY_HASH, 12
|
206
|
+
value :COMMITMENT_ANCHOR, 13
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
module Walletrpc
|
212
|
+
ListUnspentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListUnspentRequest").msgclass
|
213
|
+
ListUnspentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListUnspentResponse").msgclass
|
214
|
+
LeaseOutputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.LeaseOutputRequest").msgclass
|
215
|
+
LeaseOutputResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.LeaseOutputResponse").msgclass
|
216
|
+
ReleaseOutputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ReleaseOutputRequest").msgclass
|
217
|
+
ReleaseOutputResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ReleaseOutputResponse").msgclass
|
218
|
+
KeyReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.KeyReq").msgclass
|
219
|
+
AddrRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddrRequest").msgclass
|
220
|
+
AddrResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddrResponse").msgclass
|
221
|
+
Account = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.Account").msgclass
|
222
|
+
ListAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListAccountsRequest").msgclass
|
223
|
+
ListAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListAccountsResponse").msgclass
|
224
|
+
ImportAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportAccountRequest").msgclass
|
225
|
+
ImportAccountResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportAccountResponse").msgclass
|
226
|
+
ImportPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportPublicKeyRequest").msgclass
|
227
|
+
ImportPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportPublicKeyResponse").msgclass
|
228
|
+
Transaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.Transaction").msgclass
|
229
|
+
PublishResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.PublishResponse").msgclass
|
230
|
+
SendOutputsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.SendOutputsRequest").msgclass
|
231
|
+
SendOutputsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.SendOutputsResponse").msgclass
|
232
|
+
EstimateFeeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.EstimateFeeRequest").msgclass
|
233
|
+
EstimateFeeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.EstimateFeeResponse").msgclass
|
234
|
+
PendingSweep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.PendingSweep").msgclass
|
235
|
+
PendingSweepsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.PendingSweepsRequest").msgclass
|
236
|
+
PendingSweepsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.PendingSweepsResponse").msgclass
|
237
|
+
BumpFeeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.BumpFeeRequest").msgclass
|
238
|
+
BumpFeeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.BumpFeeResponse").msgclass
|
239
|
+
ListSweepsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListSweepsRequest").msgclass
|
240
|
+
ListSweepsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListSweepsResponse").msgclass
|
241
|
+
ListSweepsResponse::TransactionIDs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListSweepsResponse.TransactionIDs").msgclass
|
242
|
+
LabelTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.LabelTransactionRequest").msgclass
|
243
|
+
LabelTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.LabelTransactionResponse").msgclass
|
244
|
+
FundPsbtRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FundPsbtRequest").msgclass
|
245
|
+
FundPsbtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FundPsbtResponse").msgclass
|
246
|
+
TxTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.TxTemplate").msgclass
|
247
|
+
UtxoLease = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.UtxoLease").msgclass
|
248
|
+
FinalizePsbtRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FinalizePsbtRequest").msgclass
|
249
|
+
FinalizePsbtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FinalizePsbtResponse").msgclass
|
250
|
+
ListLeasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListLeasesRequest").msgclass
|
251
|
+
ListLeasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListLeasesResponse").msgclass
|
252
|
+
AddressType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddressType").enummodule
|
253
|
+
WitnessType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.WitnessType").enummodule
|
254
|
+
end
|