2018-10-25 05:27:44 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: walletrpc/walletkit.proto
|
|
|
|
|
2019-05-15 16:07:30 +03:00
|
|
|
package walletrpc
|
2018-10-25 05:27:44 +03:00
|
|
|
|
|
|
|
import (
|
2019-05-15 16:07:30 +03:00
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
2019-05-17 05:53:25 +03:00
|
|
|
lnrpc "github.com/lightningnetwork/lnd/lnrpc"
|
2019-05-15 16:07:30 +03:00
|
|
|
signrpc "github.com/lightningnetwork/lnd/lnrpc/signrpc"
|
2018-10-25 05:27:44 +03:00
|
|
|
grpc "google.golang.org/grpc"
|
2019-05-15 16:07:30 +03:00
|
|
|
math "math"
|
2018-10-25 05:27:44 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
2019-05-15 16:07:30 +03:00
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2018-10-25 05:27:44 +03:00
|
|
|
|
2019-05-17 05:53:25 +03:00
|
|
|
type WitnessType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
WitnessType_UNKNOWN_WITNESS WitnessType = 0
|
|
|
|
//
|
|
|
|
//A witness that allows us to spend the output of a commitment transaction
|
|
|
|
//after a relative lock-time lockout.
|
|
|
|
WitnessType_COMMITMENT_TIME_LOCK WitnessType = 1
|
|
|
|
//
|
|
|
|
//A witness that allows us to spend a settled no-delay output immediately on a
|
|
|
|
//counterparty's commitment transaction.
|
|
|
|
WitnessType_COMMITMENT_NO_DELAY WitnessType = 2
|
|
|
|
//
|
|
|
|
//A witness that allows us to sweep the settled output of a malicious
|
|
|
|
//counterparty's who broadcasts a revoked commitment transaction.
|
|
|
|
WitnessType_COMMITMENT_REVOKE WitnessType = 3
|
|
|
|
//
|
|
|
|
//A witness that allows us to sweep an HTLC which we offered to the remote
|
|
|
|
//party in the case that they broadcast a revoked commitment state.
|
|
|
|
WitnessType_HTLC_OFFERED_REVOKE WitnessType = 4
|
|
|
|
//
|
|
|
|
//A witness that allows us to sweep an HTLC output sent to us in the case that
|
|
|
|
//the remote party broadcasts a revoked commitment state.
|
|
|
|
WitnessType_HTLC_ACCEPTED_REVOKE WitnessType = 5
|
|
|
|
//
|
|
|
|
//A witness that allows us to sweep an HTLC output that we extended to a
|
|
|
|
//party, but was never fulfilled. This HTLC output isn't directly on the
|
|
|
|
//commitment transaction, but is the result of a confirmed second-level HTLC
|
|
|
|
//transaction. As a result, we can only spend this after a CSV delay.
|
|
|
|
WitnessType_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL WitnessType = 6
|
|
|
|
//
|
|
|
|
//A witness that allows us to sweep an HTLC output that was offered to us, and
|
|
|
|
//for which we have a payment preimage. This HTLC output isn't directly on our
|
|
|
|
//commitment transaction, but is the result of confirmed second-level HTLC
|
|
|
|
//transaction. As a result, we can only spend this after a CSV delay.
|
|
|
|
WitnessType_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL WitnessType = 7
|
|
|
|
//
|
|
|
|
//A witness that allows us to sweep an HTLC that we offered to the remote
|
|
|
|
//party which lies in the commitment transaction of the remote party. We can
|
|
|
|
//spend this output after the absolute CLTV timeout of the HTLC as passed.
|
|
|
|
WitnessType_HTLC_OFFERED_REMOTE_TIMEOUT WitnessType = 8
|
|
|
|
//
|
|
|
|
//A witness that allows us to sweep an HTLC that was offered to us by the
|
|
|
|
//remote party. We use this witness in the case that the remote party goes to
|
|
|
|
//chain, and we know the pre-image to the HTLC. We can sweep this without any
|
|
|
|
//additional timeout.
|
|
|
|
WitnessType_HTLC_ACCEPTED_REMOTE_SUCCESS WitnessType = 9
|
|
|
|
//
|
|
|
|
//A witness that allows us to sweep an HTLC from the remote party's commitment
|
|
|
|
//transaction in the case that the broadcast a revoked commitment, but then
|
|
|
|
//also immediately attempt to go to the second level to claim the HTLC.
|
|
|
|
WitnessType_HTLC_SECOND_LEVEL_REVOKE WitnessType = 10
|
|
|
|
//
|
|
|
|
//A witness type that allows us to spend a regular p2wkh output that's sent to
|
|
|
|
//an output which is under complete control of the backing wallet.
|
|
|
|
WitnessType_WITNESS_KEY_HASH WitnessType = 11
|
|
|
|
//
|
|
|
|
//A witness type that allows us to sweep an output that sends to a nested P2SH
|
|
|
|
//script that pays to a key solely under our control.
|
|
|
|
WitnessType_NESTED_WITNESS_KEY_HASH WitnessType = 12
|
|
|
|
)
|
|
|
|
|
|
|
|
var WitnessType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_WITNESS",
|
|
|
|
1: "COMMITMENT_TIME_LOCK",
|
|
|
|
2: "COMMITMENT_NO_DELAY",
|
|
|
|
3: "COMMITMENT_REVOKE",
|
|
|
|
4: "HTLC_OFFERED_REVOKE",
|
|
|
|
5: "HTLC_ACCEPTED_REVOKE",
|
|
|
|
6: "HTLC_OFFERED_TIMEOUT_SECOND_LEVEL",
|
|
|
|
7: "HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL",
|
|
|
|
8: "HTLC_OFFERED_REMOTE_TIMEOUT",
|
|
|
|
9: "HTLC_ACCEPTED_REMOTE_SUCCESS",
|
|
|
|
10: "HTLC_SECOND_LEVEL_REVOKE",
|
|
|
|
11: "WITNESS_KEY_HASH",
|
|
|
|
12: "NESTED_WITNESS_KEY_HASH",
|
|
|
|
}
|
|
|
|
|
|
|
|
var WitnessType_value = map[string]int32{
|
|
|
|
"UNKNOWN_WITNESS": 0,
|
|
|
|
"COMMITMENT_TIME_LOCK": 1,
|
|
|
|
"COMMITMENT_NO_DELAY": 2,
|
|
|
|
"COMMITMENT_REVOKE": 3,
|
|
|
|
"HTLC_OFFERED_REVOKE": 4,
|
|
|
|
"HTLC_ACCEPTED_REVOKE": 5,
|
|
|
|
"HTLC_OFFERED_TIMEOUT_SECOND_LEVEL": 6,
|
|
|
|
"HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL": 7,
|
|
|
|
"HTLC_OFFERED_REMOTE_TIMEOUT": 8,
|
|
|
|
"HTLC_ACCEPTED_REMOTE_SUCCESS": 9,
|
|
|
|
"HTLC_SECOND_LEVEL_REVOKE": 10,
|
|
|
|
"WITNESS_KEY_HASH": 11,
|
|
|
|
"NESTED_WITNESS_KEY_HASH": 12,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x WitnessType) String() string {
|
|
|
|
return proto.EnumName(WitnessType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (WitnessType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{0}
|
|
|
|
}
|
|
|
|
|
2018-10-25 05:27:44 +03:00
|
|
|
type KeyReq struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//Is the key finger print of the root pubkey that this request is targeting.
|
|
|
|
//This allows the WalletKit to possibly serve out keys for multiple HD chains
|
|
|
|
//via public derivation.
|
2018-12-11 13:42:43 +03:00
|
|
|
KeyFingerPrint int32 `protobuf:"varint,1,opt,name=key_finger_print,json=keyFingerPrint,proto3" json:"key_finger_print,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The target key family to derive a key from. In other contexts, this is
|
|
|
|
//known as the "account".
|
2018-12-11 13:42:43 +03:00
|
|
|
KeyFamily int32 `protobuf:"varint,2,opt,name=key_family,json=keyFamily,proto3" json:"key_family,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *KeyReq) Reset() { *m = KeyReq{} }
|
|
|
|
func (m *KeyReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*KeyReq) ProtoMessage() {}
|
|
|
|
func (*KeyReq) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{0}
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *KeyReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_KeyReq.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *KeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_KeyReq.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *KeyReq) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_KeyReq.Merge(m, src)
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
|
|
|
func (m *KeyReq) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_KeyReq.Size(m)
|
|
|
|
}
|
|
|
|
func (m *KeyReq) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_KeyReq.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_KeyReq proto.InternalMessageInfo
|
2018-10-25 05:27:44 +03:00
|
|
|
|
|
|
|
func (m *KeyReq) GetKeyFingerPrint() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.KeyFingerPrint
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *KeyReq) GetKeyFamily() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.KeyFamily
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddrRequest struct {
|
2018-12-11 13:42:43 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *AddrRequest) Reset() { *m = AddrRequest{} }
|
|
|
|
func (m *AddrRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*AddrRequest) ProtoMessage() {}
|
|
|
|
func (*AddrRequest) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{1}
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *AddrRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_AddrRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *AddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_AddrRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *AddrRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_AddrRequest.Merge(m, src)
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
|
|
|
func (m *AddrRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_AddrRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *AddrRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_AddrRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_AddrRequest proto.InternalMessageInfo
|
2018-10-25 05:27:44 +03:00
|
|
|
|
|
|
|
type AddrResponse struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The address encoded using a bech32 format.
|
2018-12-11 13:42:43 +03:00
|
|
|
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *AddrResponse) Reset() { *m = AddrResponse{} }
|
|
|
|
func (m *AddrResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*AddrResponse) ProtoMessage() {}
|
|
|
|
func (*AddrResponse) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{2}
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *AddrResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_AddrResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *AddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_AddrResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *AddrResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_AddrResponse.Merge(m, src)
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
|
|
|
func (m *AddrResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_AddrResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *AddrResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_AddrResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_AddrResponse proto.InternalMessageInfo
|
2018-10-25 05:27:44 +03:00
|
|
|
|
|
|
|
func (m *AddrResponse) GetAddr() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Addr
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type Transaction struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The raw serialized transaction.
|
2018-12-11 13:42:43 +03:00
|
|
|
TxHex []byte `protobuf:"bytes,1,opt,name=tx_hex,json=txHex,proto3" json:"tx_hex,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Transaction) Reset() { *m = Transaction{} }
|
|
|
|
func (m *Transaction) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Transaction) ProtoMessage() {}
|
|
|
|
func (*Transaction) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{3}
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *Transaction) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Transaction.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Transaction.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *Transaction) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Transaction.Merge(m, src)
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
|
|
|
func (m *Transaction) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Transaction.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Transaction) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Transaction.DiscardUnknown(m)
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
var xxx_messageInfo_Transaction proto.InternalMessageInfo
|
2018-10-25 05:27:44 +03:00
|
|
|
|
|
|
|
func (m *Transaction) GetTxHex() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.TxHex
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PublishResponse struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//If blank, then no error occurred and the transaction was successfully
|
|
|
|
//published. If not the empty string, then a string representation of the
|
|
|
|
//broadcast error.
|
2018-10-25 05:27:44 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//TODO(roasbeef): map to a proper enum type
|
2018-12-11 13:42:43 +03:00
|
|
|
PublishError string `protobuf:"bytes,1,opt,name=publish_error,json=publishError,proto3" json:"publish_error,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PublishResponse) Reset() { *m = PublishResponse{} }
|
|
|
|
func (m *PublishResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PublishResponse) ProtoMessage() {}
|
|
|
|
func (*PublishResponse) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{4}
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *PublishResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PublishResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PublishResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *PublishResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PublishResponse.Merge(m, src)
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
|
|
|
func (m *PublishResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PublishResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PublishResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PublishResponse.DiscardUnknown(m)
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
var xxx_messageInfo_PublishResponse proto.InternalMessageInfo
|
2018-10-25 05:27:44 +03:00
|
|
|
|
|
|
|
func (m *PublishResponse) GetPublishError() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.PublishError
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type SendOutputsRequest struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The number of satoshis per kilo weight that should be used when crafting
|
|
|
|
//this transaction.
|
2018-12-11 13:42:43 +03:00
|
|
|
SatPerKw int64 `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//A slice of the outputs that should be created in the transaction produced.
|
2018-12-11 13:42:43 +03:00
|
|
|
Outputs []*signrpc.TxOut `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SendOutputsRequest) Reset() { *m = SendOutputsRequest{} }
|
|
|
|
func (m *SendOutputsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SendOutputsRequest) ProtoMessage() {}
|
|
|
|
func (*SendOutputsRequest) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{5}
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *SendOutputsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SendOutputsRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *SendOutputsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SendOutputsRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *SendOutputsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SendOutputsRequest.Merge(m, src)
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
|
|
|
func (m *SendOutputsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SendOutputsRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *SendOutputsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SendOutputsRequest.DiscardUnknown(m)
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
var xxx_messageInfo_SendOutputsRequest proto.InternalMessageInfo
|
2018-10-25 05:27:44 +03:00
|
|
|
|
|
|
|
func (m *SendOutputsRequest) GetSatPerKw() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SatPerKw
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SendOutputsRequest) GetOutputs() []*signrpc.TxOut {
|
|
|
|
if m != nil {
|
|
|
|
return m.Outputs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type SendOutputsResponse struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The serialized transaction sent out on the network.
|
2018-12-11 13:42:43 +03:00
|
|
|
RawTx []byte `protobuf:"bytes,1,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *SendOutputsResponse) Reset() { *m = SendOutputsResponse{} }
|
|
|
|
func (m *SendOutputsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SendOutputsResponse) ProtoMessage() {}
|
|
|
|
func (*SendOutputsResponse) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{6}
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *SendOutputsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SendOutputsResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *SendOutputsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SendOutputsResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *SendOutputsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SendOutputsResponse.Merge(m, src)
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
|
|
|
func (m *SendOutputsResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SendOutputsResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *SendOutputsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SendOutputsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SendOutputsResponse proto.InternalMessageInfo
|
2018-10-25 05:27:44 +03:00
|
|
|
|
|
|
|
func (m *SendOutputsResponse) GetRawTx() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.RawTx
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type EstimateFeeRequest struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The number of confirmations to shoot for when estimating the fee.
|
2018-12-11 13:42:43 +03:00
|
|
|
ConfTarget int32 `protobuf:"varint,1,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *EstimateFeeRequest) Reset() { *m = EstimateFeeRequest{} }
|
|
|
|
func (m *EstimateFeeRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*EstimateFeeRequest) ProtoMessage() {}
|
|
|
|
func (*EstimateFeeRequest) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{7}
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *EstimateFeeRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_EstimateFeeRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *EstimateFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_EstimateFeeRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *EstimateFeeRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_EstimateFeeRequest.Merge(m, src)
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
|
|
|
func (m *EstimateFeeRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_EstimateFeeRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *EstimateFeeRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_EstimateFeeRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_EstimateFeeRequest proto.InternalMessageInfo
|
2018-10-25 05:27:44 +03:00
|
|
|
|
|
|
|
func (m *EstimateFeeRequest) GetConfTarget() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ConfTarget
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type EstimateFeeResponse struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The amount of satoshis per kw that should be used in order to reach the
|
|
|
|
//confirmation target in the request.
|
2018-12-11 13:42:43 +03:00
|
|
|
SatPerKw int64 `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EstimateFeeResponse) Reset() { *m = EstimateFeeResponse{} }
|
|
|
|
func (m *EstimateFeeResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*EstimateFeeResponse) ProtoMessage() {}
|
|
|
|
func (*EstimateFeeResponse) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{8}
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
func (m *EstimateFeeResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_EstimateFeeResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *EstimateFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_EstimateFeeResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *EstimateFeeResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_EstimateFeeResponse.Merge(m, src)
|
2018-12-11 13:42:43 +03:00
|
|
|
}
|
|
|
|
func (m *EstimateFeeResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_EstimateFeeResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *EstimateFeeResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_EstimateFeeResponse.DiscardUnknown(m)
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
var xxx_messageInfo_EstimateFeeResponse proto.InternalMessageInfo
|
2018-10-25 05:27:44 +03:00
|
|
|
|
|
|
|
func (m *EstimateFeeResponse) GetSatPerKw() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SatPerKw
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-05-17 05:53:25 +03:00
|
|
|
type PendingSweep struct {
|
|
|
|
// The outpoint of the output we're attempting to sweep.
|
|
|
|
Outpoint *lnrpc.OutPoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
|
|
|
|
// The witness type of the output we're attempting to sweep.
|
|
|
|
WitnessType WitnessType `protobuf:"varint,2,opt,name=witness_type,proto3,enum=walletrpc.WitnessType" json:"witness_type,omitempty"`
|
|
|
|
// The value of the output we're attempting to sweep.
|
|
|
|
AmountSat uint32 `protobuf:"varint,3,opt,name=amount_sat,proto3" json:"amount_sat,omitempty"`
|
|
|
|
//
|
|
|
|
//The fee rate we'll use to sweep the output. The fee rate is only determined
|
|
|
|
//once a sweeping transaction for the output is created, so it's possible for
|
|
|
|
//this to be 0 before this.
|
|
|
|
SatPerByte uint32 `protobuf:"varint,4,opt,name=sat_per_byte,proto3" json:"sat_per_byte,omitempty"`
|
|
|
|
// The number of broadcast attempts we've made to sweep the output.
|
|
|
|
BroadcastAttempts uint32 `protobuf:"varint,5,opt,name=broadcast_attempts,proto3" json:"broadcast_attempts,omitempty"`
|
|
|
|
//
|
|
|
|
//The next height of the chain at which we'll attempt to broadcast the
|
|
|
|
//sweep transaction of the output.
|
|
|
|
NextBroadcastHeight uint32 `protobuf:"varint,6,opt,name=next_broadcast_height,proto3" json:"next_broadcast_height,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweep) Reset() { *m = PendingSweep{} }
|
|
|
|
func (m *PendingSweep) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PendingSweep) ProtoMessage() {}
|
|
|
|
func (*PendingSweep) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{9}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweep) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PendingSweep.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PendingSweep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PendingSweep.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PendingSweep) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PendingSweep.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PendingSweep) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PendingSweep.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PendingSweep) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PendingSweep.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PendingSweep proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PendingSweep) GetOutpoint() *lnrpc.OutPoint {
|
|
|
|
if m != nil {
|
|
|
|
return m.Outpoint
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweep) GetWitnessType() WitnessType {
|
|
|
|
if m != nil {
|
|
|
|
return m.WitnessType
|
|
|
|
}
|
|
|
|
return WitnessType_UNKNOWN_WITNESS
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweep) GetAmountSat() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AmountSat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweep) GetSatPerByte() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SatPerByte
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweep) GetBroadcastAttempts() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.BroadcastAttempts
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweep) GetNextBroadcastHeight() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.NextBroadcastHeight
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type PendingSweepsRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweepsRequest) Reset() { *m = PendingSweepsRequest{} }
|
|
|
|
func (m *PendingSweepsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PendingSweepsRequest) ProtoMessage() {}
|
|
|
|
func (*PendingSweepsRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{10}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweepsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PendingSweepsRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PendingSweepsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PendingSweepsRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PendingSweepsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PendingSweepsRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PendingSweepsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PendingSweepsRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PendingSweepsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PendingSweepsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PendingSweepsRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type PendingSweepsResponse struct {
|
|
|
|
//
|
|
|
|
//The set of outputs currently being swept by lnd's central batching engine.
|
|
|
|
PendingSweeps []*PendingSweep `protobuf:"bytes,1,rep,name=pending_sweeps,proto3" json:"pending_sweeps,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweepsResponse) Reset() { *m = PendingSweepsResponse{} }
|
|
|
|
func (m *PendingSweepsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PendingSweepsResponse) ProtoMessage() {}
|
|
|
|
func (*PendingSweepsResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_6cc6942ac78249e5, []int{11}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PendingSweepsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PendingSweepsResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PendingSweepsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PendingSweepsResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PendingSweepsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PendingSweepsResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PendingSweepsResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PendingSweepsResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PendingSweepsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PendingSweepsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PendingSweepsResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PendingSweepsResponse) GetPendingSweeps() []*PendingSweep {
|
|
|
|
if m != nil {
|
|
|
|
return m.PendingSweeps
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-10-25 05:27:44 +03:00
|
|
|
func init() {
|
2019-05-17 05:53:25 +03:00
|
|
|
proto.RegisterEnum("walletrpc.WitnessType", WitnessType_name, WitnessType_value)
|
2018-10-25 05:27:44 +03:00
|
|
|
proto.RegisterType((*KeyReq)(nil), "walletrpc.KeyReq")
|
|
|
|
proto.RegisterType((*AddrRequest)(nil), "walletrpc.AddrRequest")
|
|
|
|
proto.RegisterType((*AddrResponse)(nil), "walletrpc.AddrResponse")
|
|
|
|
proto.RegisterType((*Transaction)(nil), "walletrpc.Transaction")
|
|
|
|
proto.RegisterType((*PublishResponse)(nil), "walletrpc.PublishResponse")
|
|
|
|
proto.RegisterType((*SendOutputsRequest)(nil), "walletrpc.SendOutputsRequest")
|
|
|
|
proto.RegisterType((*SendOutputsResponse)(nil), "walletrpc.SendOutputsResponse")
|
|
|
|
proto.RegisterType((*EstimateFeeRequest)(nil), "walletrpc.EstimateFeeRequest")
|
|
|
|
proto.RegisterType((*EstimateFeeResponse)(nil), "walletrpc.EstimateFeeResponse")
|
2019-05-17 05:53:25 +03:00
|
|
|
proto.RegisterType((*PendingSweep)(nil), "walletrpc.PendingSweep")
|
|
|
|
proto.RegisterType((*PendingSweepsRequest)(nil), "walletrpc.PendingSweepsRequest")
|
|
|
|
proto.RegisterType((*PendingSweepsResponse)(nil), "walletrpc.PendingSweepsResponse")
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
2019-05-15 16:07:30 +03:00
|
|
|
func init() { proto.RegisterFile("walletrpc/walletkit.proto", fileDescriptor_6cc6942ac78249e5) }
|
|
|
|
|
|
|
|
var fileDescriptor_6cc6942ac78249e5 = []byte{
|
2019-05-17 05:53:25 +03:00
|
|
|
// 918 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x55, 0x5d, 0x6f, 0xe2, 0x46,
|
|
|
|
0x14, 0x2d, 0x21, 0x61, 0xc3, 0x05, 0x12, 0xef, 0x10, 0x12, 0x97, 0xcd, 0x6e, 0xa8, 0xfb, 0x21,
|
|
|
|
0xd4, 0x56, 0xa0, 0x66, 0xdb, 0xaa, 0x6a, 0x1f, 0xaa, 0x14, 0x1c, 0x11, 0xf1, 0x61, 0x6a, 0x3b,
|
|
|
|
0x9b, 0x6e, 0x55, 0x69, 0x64, 0x60, 0x16, 0x2c, 0xc0, 0x76, 0xc6, 0x43, 0xc1, 0xaf, 0xfd, 0x27,
|
|
|
|
0xf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, 0x93, 0x74, 0x07, 0x00, 0x00,
|
2019-05-15 16:07:30 +03:00
|
|
|
}
|
|
|
|
|
2018-10-25 05:27:44 +03:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
// WalletKitClient is the client API for WalletKit service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
2018-10-25 05:27:44 +03:00
|
|
|
type WalletKitClient interface {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//DeriveNextKey attempts to derive the *next* key within the key family
|
|
|
|
//(account in BIP43) specified. This method should return the next external
|
|
|
|
//child within this branch.
|
2018-10-25 05:27:44 +03:00
|
|
|
DeriveNextKey(ctx context.Context, in *KeyReq, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//DeriveKey attempts to derive an arbitrary key specified by the passed
|
|
|
|
//KeyLocator.
|
2018-10-25 05:27:44 +03:00
|
|
|
DeriveKey(ctx context.Context, in *signrpc.KeyLocator, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//NextAddr returns the next unused address within the wallet.
|
2018-10-25 05:27:44 +03:00
|
|
|
NextAddr(ctx context.Context, in *AddrRequest, opts ...grpc.CallOption) (*AddrResponse, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//PublishTransaction attempts to publish the passed transaction to the
|
|
|
|
//network. Once this returns without an error, the wallet will continually
|
|
|
|
//attempt to re-broadcast the transaction on start up, until it enters the
|
|
|
|
//chain.
|
2018-10-25 05:27:44 +03:00
|
|
|
PublishTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*PublishResponse, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//SendOutputs is similar to the existing sendmany call in Bitcoind, and
|
|
|
|
//allows the caller to create a transaction that sends to several outputs at
|
|
|
|
//once. This is ideal when wanting to batch create a set of transactions.
|
2018-10-25 05:27:44 +03:00
|
|
|
SendOutputs(ctx context.Context, in *SendOutputsRequest, opts ...grpc.CallOption) (*SendOutputsResponse, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//EstimateFee attempts to query the internal fee estimator of the wallet to
|
|
|
|
//determine the fee (in sat/kw) to attach to a transaction in order to
|
|
|
|
//achieve the confirmation target.
|
2018-10-25 05:27:44 +03:00
|
|
|
EstimateFee(ctx context.Context, in *EstimateFeeRequest, opts ...grpc.CallOption) (*EstimateFeeResponse, error)
|
2019-05-17 05:53:25 +03:00
|
|
|
//
|
|
|
|
//PendingSweeps returns lists of on-chain outputs that lnd is currently
|
|
|
|
//attempting to sweep within its central batching engine. Outputs with similar
|
|
|
|
//fee rates are batched together in order to sweep them within a single
|
|
|
|
//transaction.
|
|
|
|
//
|
|
|
|
//NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to
|
|
|
|
//remain supported. This is an advanced API that depends on the internals of
|
|
|
|
//the UtxoSweeper, so things may change.
|
|
|
|
PendingSweeps(ctx context.Context, in *PendingSweepsRequest, opts ...grpc.CallOption) (*PendingSweepsResponse, error)
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type walletKitClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewWalletKitClient(cc *grpc.ClientConn) WalletKitClient {
|
|
|
|
return &walletKitClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *walletKitClient) DeriveNextKey(ctx context.Context, in *KeyReq, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error) {
|
|
|
|
out := new(signrpc.KeyDescriptor)
|
2018-12-11 13:42:43 +03:00
|
|
|
err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/DeriveNextKey", in, out, opts...)
|
2018-10-25 05:27:44 +03:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *walletKitClient) DeriveKey(ctx context.Context, in *signrpc.KeyLocator, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error) {
|
|
|
|
out := new(signrpc.KeyDescriptor)
|
2018-12-11 13:42:43 +03:00
|
|
|
err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/DeriveKey", in, out, opts...)
|
2018-10-25 05:27:44 +03:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *walletKitClient) NextAddr(ctx context.Context, in *AddrRequest, opts ...grpc.CallOption) (*AddrResponse, error) {
|
|
|
|
out := new(AddrResponse)
|
2018-12-11 13:42:43 +03:00
|
|
|
err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/NextAddr", in, out, opts...)
|
2018-10-25 05:27:44 +03:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *walletKitClient) PublishTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*PublishResponse, error) {
|
|
|
|
out := new(PublishResponse)
|
2018-12-11 13:42:43 +03:00
|
|
|
err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/PublishTransaction", in, out, opts...)
|
2018-10-25 05:27:44 +03:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *walletKitClient) SendOutputs(ctx context.Context, in *SendOutputsRequest, opts ...grpc.CallOption) (*SendOutputsResponse, error) {
|
|
|
|
out := new(SendOutputsResponse)
|
2018-12-11 13:42:43 +03:00
|
|
|
err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/SendOutputs", in, out, opts...)
|
2018-10-25 05:27:44 +03:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *walletKitClient) EstimateFee(ctx context.Context, in *EstimateFeeRequest, opts ...grpc.CallOption) (*EstimateFeeResponse, error) {
|
|
|
|
out := new(EstimateFeeResponse)
|
2018-12-11 13:42:43 +03:00
|
|
|
err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/EstimateFee", in, out, opts...)
|
2018-10-25 05:27:44 +03:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-05-17 05:53:25 +03:00
|
|
|
func (c *walletKitClient) PendingSweeps(ctx context.Context, in *PendingSweepsRequest, opts ...grpc.CallOption) (*PendingSweepsResponse, error) {
|
|
|
|
out := new(PendingSweepsResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/walletrpc.WalletKit/PendingSweeps", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-12-11 13:42:43 +03:00
|
|
|
// WalletKitServer is the server API for WalletKit service.
|
2018-10-25 05:27:44 +03:00
|
|
|
type WalletKitServer interface {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//DeriveNextKey attempts to derive the *next* key within the key family
|
|
|
|
//(account in BIP43) specified. This method should return the next external
|
|
|
|
//child within this branch.
|
2018-10-25 05:27:44 +03:00
|
|
|
DeriveNextKey(context.Context, *KeyReq) (*signrpc.KeyDescriptor, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//DeriveKey attempts to derive an arbitrary key specified by the passed
|
|
|
|
//KeyLocator.
|
2018-10-25 05:27:44 +03:00
|
|
|
DeriveKey(context.Context, *signrpc.KeyLocator) (*signrpc.KeyDescriptor, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//NextAddr returns the next unused address within the wallet.
|
2018-10-25 05:27:44 +03:00
|
|
|
NextAddr(context.Context, *AddrRequest) (*AddrResponse, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//PublishTransaction attempts to publish the passed transaction to the
|
|
|
|
//network. Once this returns without an error, the wallet will continually
|
|
|
|
//attempt to re-broadcast the transaction on start up, until it enters the
|
|
|
|
//chain.
|
2018-10-25 05:27:44 +03:00
|
|
|
PublishTransaction(context.Context, *Transaction) (*PublishResponse, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//SendOutputs is similar to the existing sendmany call in Bitcoind, and
|
|
|
|
//allows the caller to create a transaction that sends to several outputs at
|
|
|
|
//once. This is ideal when wanting to batch create a set of transactions.
|
2018-10-25 05:27:44 +03:00
|
|
|
SendOutputs(context.Context, *SendOutputsRequest) (*SendOutputsResponse, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//EstimateFee attempts to query the internal fee estimator of the wallet to
|
|
|
|
//determine the fee (in sat/kw) to attach to a transaction in order to
|
|
|
|
//achieve the confirmation target.
|
2018-10-25 05:27:44 +03:00
|
|
|
EstimateFee(context.Context, *EstimateFeeRequest) (*EstimateFeeResponse, error)
|
2019-05-17 05:53:25 +03:00
|
|
|
//
|
|
|
|
//PendingSweeps returns lists of on-chain outputs that lnd is currently
|
|
|
|
//attempting to sweep within its central batching engine. Outputs with similar
|
|
|
|
//fee rates are batched together in order to sweep them within a single
|
|
|
|
//transaction.
|
|
|
|
//
|
|
|
|
//NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to
|
|
|
|
//remain supported. This is an advanced API that depends on the internals of
|
|
|
|
//the UtxoSweeper, so things may change.
|
|
|
|
PendingSweeps(context.Context, *PendingSweepsRequest) (*PendingSweepsResponse, error)
|
2018-10-25 05:27:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterWalletKitServer(s *grpc.Server, srv WalletKitServer) {
|
|
|
|
s.RegisterService(&_WalletKit_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _WalletKit_DeriveNextKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(KeyReq)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(WalletKitServer).DeriveNextKey(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/walletrpc.WalletKit/DeriveNextKey",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(WalletKitServer).DeriveNextKey(ctx, req.(*KeyReq))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _WalletKit_DeriveKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(signrpc.KeyLocator)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(WalletKitServer).DeriveKey(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/walletrpc.WalletKit/DeriveKey",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(WalletKitServer).DeriveKey(ctx, req.(*signrpc.KeyLocator))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _WalletKit_NextAddr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(AddrRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(WalletKitServer).NextAddr(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/walletrpc.WalletKit/NextAddr",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(WalletKitServer).NextAddr(ctx, req.(*AddrRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _WalletKit_PublishTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Transaction)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(WalletKitServer).PublishTransaction(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/walletrpc.WalletKit/PublishTransaction",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(WalletKitServer).PublishTransaction(ctx, req.(*Transaction))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _WalletKit_SendOutputs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(SendOutputsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(WalletKitServer).SendOutputs(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/walletrpc.WalletKit/SendOutputs",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(WalletKitServer).SendOutputs(ctx, req.(*SendOutputsRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _WalletKit_EstimateFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(EstimateFeeRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(WalletKitServer).EstimateFee(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/walletrpc.WalletKit/EstimateFee",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(WalletKitServer).EstimateFee(ctx, req.(*EstimateFeeRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-05-17 05:53:25 +03:00
|
|
|
func _WalletKit_PendingSweeps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(PendingSweepsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(WalletKitServer).PendingSweeps(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/walletrpc.WalletKit/PendingSweeps",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(WalletKitServer).PendingSweeps(ctx, req.(*PendingSweepsRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-10-25 05:27:44 +03:00
|
|
|
var _WalletKit_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "walletrpc.WalletKit",
|
|
|
|
HandlerType: (*WalletKitServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "DeriveNextKey",
|
|
|
|
Handler: _WalletKit_DeriveNextKey_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "DeriveKey",
|
|
|
|
Handler: _WalletKit_DeriveKey_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "NextAddr",
|
|
|
|
Handler: _WalletKit_NextAddr_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "PublishTransaction",
|
|
|
|
Handler: _WalletKit_PublishTransaction_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "SendOutputs",
|
|
|
|
Handler: _WalletKit_SendOutputs_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "EstimateFee",
|
|
|
|
Handler: _WalletKit_EstimateFee_Handler,
|
|
|
|
},
|
2019-05-17 05:53:25 +03:00
|
|
|
{
|
|
|
|
MethodName: "PendingSweeps",
|
|
|
|
Handler: _WalletKit_PendingSweeps_Handler,
|
|
|
|
},
|
2018-10-25 05:27:44 +03:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "walletrpc/walletkit.proto",
|
|
|
|
}
|