mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
953 lines
31 KiB
Go
953 lines
31 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.10
|
|
// protoc v3.21.12
|
|
// source: instantout.proto
|
|
|
|
// We can't change this to swapserverrpc, it would be a breaking change because
|
|
// the package name is also contained in the HTTP URIs and old clients would
|
|
// call the wrong endpoints. Luckily with the go_package option we can have
|
|
// different golang and RPC package names to fix protobuf namespace conflicts.
|
|
|
|
package swapserverrpc
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type InstantOutProtocolVersion int32
|
|
|
|
const (
|
|
InstantOutProtocolVersion_INSTANTOUT_NONE InstantOutProtocolVersion = 0
|
|
InstantOutProtocolVersion_INSTANTOUT_FULL_RESERVATION InstantOutProtocolVersion = 1
|
|
)
|
|
|
|
// Enum value maps for InstantOutProtocolVersion.
|
|
var (
|
|
InstantOutProtocolVersion_name = map[int32]string{
|
|
0: "INSTANTOUT_NONE",
|
|
1: "INSTANTOUT_FULL_RESERVATION",
|
|
}
|
|
InstantOutProtocolVersion_value = map[string]int32{
|
|
"INSTANTOUT_NONE": 0,
|
|
"INSTANTOUT_FULL_RESERVATION": 1,
|
|
}
|
|
)
|
|
|
|
func (x InstantOutProtocolVersion) Enum() *InstantOutProtocolVersion {
|
|
p := new(InstantOutProtocolVersion)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x InstantOutProtocolVersion) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (InstantOutProtocolVersion) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_instantout_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (InstantOutProtocolVersion) Type() protoreflect.EnumType {
|
|
return &file_instantout_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x InstantOutProtocolVersion) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use InstantOutProtocolVersion.Descriptor instead.
|
|
func (InstantOutProtocolVersion) EnumDescriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type InstantLoopOutRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Htlc related fields:
|
|
// The key for the htlc preimage spending path.
|
|
ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"`
|
|
// The hash of the preimage that will be used to settle the htlc.
|
|
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
|
|
// The requested absolute block height of the on-chain htlc. This is
|
|
// subjected to min and max constraints as reported in the LoopOutTerms
|
|
// response.
|
|
Expiry int32 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
|
// The fee rate in sat/kw that should be used for the htlc.
|
|
HtlcFeeRate uint64 `protobuf:"varint,4,opt,name=htlc_fee_rate,json=htlcFeeRate,proto3" json:"htlc_fee_rate,omitempty"`
|
|
// The reservations used as the inputs.
|
|
ReservationIds [][]byte `protobuf:"bytes,5,rep,name=reservation_ids,json=reservationIds,proto3" json:"reservation_ids,omitempty"`
|
|
// The protocol version to use for the swap.
|
|
ProtocolVersion InstantOutProtocolVersion `protobuf:"varint,6,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.InstantOutProtocolVersion" json:"protocol_version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InstantLoopOutRequest) Reset() {
|
|
*x = InstantLoopOutRequest{}
|
|
mi := &file_instantout_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InstantLoopOutRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InstantLoopOutRequest) ProtoMessage() {}
|
|
|
|
func (x *InstantLoopOutRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InstantLoopOutRequest.ProtoReflect.Descriptor instead.
|
|
func (*InstantLoopOutRequest) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *InstantLoopOutRequest) GetReceiverKey() []byte {
|
|
if x != nil {
|
|
return x.ReceiverKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InstantLoopOutRequest) GetSwapHash() []byte {
|
|
if x != nil {
|
|
return x.SwapHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InstantLoopOutRequest) GetExpiry() int32 {
|
|
if x != nil {
|
|
return x.Expiry
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *InstantLoopOutRequest) GetHtlcFeeRate() uint64 {
|
|
if x != nil {
|
|
return x.HtlcFeeRate
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *InstantLoopOutRequest) GetReservationIds() [][]byte {
|
|
if x != nil {
|
|
return x.ReservationIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InstantLoopOutRequest) GetProtocolVersion() InstantOutProtocolVersion {
|
|
if x != nil {
|
|
return x.ProtocolVersion
|
|
}
|
|
return InstantOutProtocolVersion_INSTANTOUT_NONE
|
|
}
|
|
|
|
type InstantLoopOutResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The swap invoice that the client should pay.
|
|
SwapInvoice string `protobuf:"bytes,1,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"`
|
|
// the key for the htlc expiry path.
|
|
SenderKey []byte `protobuf:"bytes,2,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InstantLoopOutResponse) Reset() {
|
|
*x = InstantLoopOutResponse{}
|
|
mi := &file_instantout_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InstantLoopOutResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InstantLoopOutResponse) ProtoMessage() {}
|
|
|
|
func (x *InstantLoopOutResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InstantLoopOutResponse.ProtoReflect.Descriptor instead.
|
|
func (*InstantLoopOutResponse) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *InstantLoopOutResponse) GetSwapInvoice() string {
|
|
if x != nil {
|
|
return x.SwapInvoice
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InstantLoopOutResponse) GetSenderKey() []byte {
|
|
if x != nil {
|
|
return x.SenderKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PollPaymentAcceptedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The hash of the swap invoice.
|
|
SwapHash []byte `protobuf:"bytes,1,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PollPaymentAcceptedRequest) Reset() {
|
|
*x = PollPaymentAcceptedRequest{}
|
|
mi := &file_instantout_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PollPaymentAcceptedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PollPaymentAcceptedRequest) ProtoMessage() {}
|
|
|
|
func (x *PollPaymentAcceptedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PollPaymentAcceptedRequest.ProtoReflect.Descriptor instead.
|
|
func (*PollPaymentAcceptedRequest) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *PollPaymentAcceptedRequest) GetSwapHash() []byte {
|
|
if x != nil {
|
|
return x.SwapHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PollPaymentAcceptedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Whether the payment has been accepted.
|
|
Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PollPaymentAcceptedResponse) Reset() {
|
|
*x = PollPaymentAcceptedResponse{}
|
|
mi := &file_instantout_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PollPaymentAcceptedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PollPaymentAcceptedResponse) ProtoMessage() {}
|
|
|
|
func (x *PollPaymentAcceptedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PollPaymentAcceptedResponse.ProtoReflect.Descriptor instead.
|
|
func (*PollPaymentAcceptedResponse) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *PollPaymentAcceptedResponse) GetAccepted() bool {
|
|
if x != nil {
|
|
return x.Accepted
|
|
}
|
|
return false
|
|
}
|
|
|
|
type InitHtlcSigRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The hash of the swap invoice.
|
|
SwapHash []byte `protobuf:"bytes,1,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
|
|
// The nonces that the client will use to generate the htlc sigs.
|
|
HtlcClientNonces [][]byte `protobuf:"bytes,2,rep,name=htlc_client_nonces,json=htlcClientNonces,proto3" json:"htlc_client_nonces,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitHtlcSigRequest) Reset() {
|
|
*x = InitHtlcSigRequest{}
|
|
mi := &file_instantout_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitHtlcSigRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitHtlcSigRequest) ProtoMessage() {}
|
|
|
|
func (x *InitHtlcSigRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InitHtlcSigRequest.ProtoReflect.Descriptor instead.
|
|
func (*InitHtlcSigRequest) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *InitHtlcSigRequest) GetSwapHash() []byte {
|
|
if x != nil {
|
|
return x.SwapHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InitHtlcSigRequest) GetHtlcClientNonces() [][]byte {
|
|
if x != nil {
|
|
return x.HtlcClientNonces
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type InitHtlcSigResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The nonces that the server will use to generate the htlc sigs.
|
|
HtlcServerNonces [][]byte `protobuf:"bytes,2,rep,name=htlc_server_nonces,json=htlcServerNonces,proto3" json:"htlc_server_nonces,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitHtlcSigResponse) Reset() {
|
|
*x = InitHtlcSigResponse{}
|
|
mi := &file_instantout_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitHtlcSigResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitHtlcSigResponse) ProtoMessage() {}
|
|
|
|
func (x *InitHtlcSigResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InitHtlcSigResponse.ProtoReflect.Descriptor instead.
|
|
func (*InitHtlcSigResponse) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *InitHtlcSigResponse) GetHtlcServerNonces() [][]byte {
|
|
if x != nil {
|
|
return x.HtlcServerNonces
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PushHtlcSigRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The hash of the swap invoice.
|
|
SwapHash []byte `protobuf:"bytes,1,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
|
|
// The sigs that the client generated for the reservation inputs.
|
|
ClientSigs [][]byte `protobuf:"bytes,2,rep,name=client_sigs,json=clientSigs,proto3" json:"client_sigs,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PushHtlcSigRequest) Reset() {
|
|
*x = PushHtlcSigRequest{}
|
|
mi := &file_instantout_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PushHtlcSigRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PushHtlcSigRequest) ProtoMessage() {}
|
|
|
|
func (x *PushHtlcSigRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PushHtlcSigRequest.ProtoReflect.Descriptor instead.
|
|
func (*PushHtlcSigRequest) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *PushHtlcSigRequest) GetSwapHash() []byte {
|
|
if x != nil {
|
|
return x.SwapHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PushHtlcSigRequest) GetClientSigs() [][]byte {
|
|
if x != nil {
|
|
return x.ClientSigs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PushHtlcSigResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The sigs that the server generated for the reservation inputs.
|
|
ServerSigs [][]byte `protobuf:"bytes,1,rep,name=server_sigs,json=serverSigs,proto3" json:"server_sigs,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PushHtlcSigResponse) Reset() {
|
|
*x = PushHtlcSigResponse{}
|
|
mi := &file_instantout_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PushHtlcSigResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PushHtlcSigResponse) ProtoMessage() {}
|
|
|
|
func (x *PushHtlcSigResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PushHtlcSigResponse.ProtoReflect.Descriptor instead.
|
|
func (*PushHtlcSigResponse) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *PushHtlcSigResponse) GetServerSigs() [][]byte {
|
|
if x != nil {
|
|
return x.ServerSigs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PushPreimageRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The preimage that the client generated for the swap.
|
|
Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"`
|
|
// The nonces that the client used to generate the sweepless sweep sigs.
|
|
ClientNonces [][]byte `protobuf:"bytes,2,rep,name=client_nonces,json=clientNonces,proto3" json:"client_nonces,omitempty"`
|
|
// The address that the client wants to sweep the htlc to.
|
|
ClientSweepAddr string `protobuf:"bytes,3,opt,name=client_sweep_addr,json=clientSweepAddr,proto3" json:"client_sweep_addr,omitempty"`
|
|
// The fee rate in sat/kw that the client wants to use for the sweep.
|
|
MusigTxFeeRate uint64 `protobuf:"varint,4,opt,name=musig_tx_fee_rate,json=musigTxFeeRate,proto3" json:"musig_tx_fee_rate,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PushPreimageRequest) Reset() {
|
|
*x = PushPreimageRequest{}
|
|
mi := &file_instantout_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PushPreimageRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PushPreimageRequest) ProtoMessage() {}
|
|
|
|
func (x *PushPreimageRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PushPreimageRequest.ProtoReflect.Descriptor instead.
|
|
func (*PushPreimageRequest) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *PushPreimageRequest) GetPreimage() []byte {
|
|
if x != nil {
|
|
return x.Preimage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PushPreimageRequest) GetClientNonces() [][]byte {
|
|
if x != nil {
|
|
return x.ClientNonces
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PushPreimageRequest) GetClientSweepAddr() string {
|
|
if x != nil {
|
|
return x.ClientSweepAddr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PushPreimageRequest) GetMusigTxFeeRate() uint64 {
|
|
if x != nil {
|
|
return x.MusigTxFeeRate
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PushPreimageResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The sweep sigs that the server generated for the htlc.
|
|
Musig2SweepSigs [][]byte `protobuf:"bytes,1,rep,name=musig2_sweep_sigs,json=musig2SweepSigs,proto3" json:"musig2_sweep_sigs,omitempty"`
|
|
// The nonces that the server used to generate the sweepless sweep sigs.
|
|
ServerNonces [][]byte `protobuf:"bytes,2,rep,name=server_nonces,json=serverNonces,proto3" json:"server_nonces,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PushPreimageResponse) Reset() {
|
|
*x = PushPreimageResponse{}
|
|
mi := &file_instantout_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PushPreimageResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PushPreimageResponse) ProtoMessage() {}
|
|
|
|
func (x *PushPreimageResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PushPreimageResponse.ProtoReflect.Descriptor instead.
|
|
func (*PushPreimageResponse) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *PushPreimageResponse) GetMusig2SweepSigs() [][]byte {
|
|
if x != nil {
|
|
return x.Musig2SweepSigs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PushPreimageResponse) GetServerNonces() [][]byte {
|
|
if x != nil {
|
|
return x.ServerNonces
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CancelInstantSwapRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The hash of the swap invoice.
|
|
SwapHash []byte `protobuf:"bytes,1,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CancelInstantSwapRequest) Reset() {
|
|
*x = CancelInstantSwapRequest{}
|
|
mi := &file_instantout_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CancelInstantSwapRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CancelInstantSwapRequest) ProtoMessage() {}
|
|
|
|
func (x *CancelInstantSwapRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CancelInstantSwapRequest.ProtoReflect.Descriptor instead.
|
|
func (*CancelInstantSwapRequest) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *CancelInstantSwapRequest) GetSwapHash() []byte {
|
|
if x != nil {
|
|
return x.SwapHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CancelInstantSwapResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CancelInstantSwapResponse) Reset() {
|
|
*x = CancelInstantSwapResponse{}
|
|
mi := &file_instantout_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CancelInstantSwapResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CancelInstantSwapResponse) ProtoMessage() {}
|
|
|
|
func (x *CancelInstantSwapResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CancelInstantSwapResponse.ProtoReflect.Descriptor instead.
|
|
func (*CancelInstantSwapResponse) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
type GetInstantOutQuoteRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The amount to swap in satoshis.
|
|
Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
// The reservation ids that will be used for the swap.
|
|
ReservationIds [][]byte `protobuf:"bytes,2,rep,name=reservation_ids,json=reservationIds,proto3" json:"reservation_ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetInstantOutQuoteRequest) Reset() {
|
|
*x = GetInstantOutQuoteRequest{}
|
|
mi := &file_instantout_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetInstantOutQuoteRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetInstantOutQuoteRequest) ProtoMessage() {}
|
|
|
|
func (x *GetInstantOutQuoteRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetInstantOutQuoteRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetInstantOutQuoteRequest) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *GetInstantOutQuoteRequest) GetAmount() uint64 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetInstantOutQuoteRequest) GetReservationIds() [][]byte {
|
|
if x != nil {
|
|
return x.ReservationIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetInstantOutQuoteResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The swap fee in satoshis.
|
|
SwapFee uint64 `protobuf:"varint,1,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetInstantOutQuoteResponse) Reset() {
|
|
*x = GetInstantOutQuoteResponse{}
|
|
mi := &file_instantout_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetInstantOutQuoteResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetInstantOutQuoteResponse) ProtoMessage() {}
|
|
|
|
func (x *GetInstantOutQuoteResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_instantout_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetInstantOutQuoteResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetInstantOutQuoteResponse) Descriptor() ([]byte, []int) {
|
|
return file_instantout_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *GetInstantOutQuoteResponse) GetSwapFee() uint64 {
|
|
if x != nil {
|
|
return x.SwapFee
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_instantout_proto protoreflect.FileDescriptor
|
|
|
|
const file_instantout_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x10instantout.proto\x12\alooprpc\"\x8b\x02\n" +
|
|
"\x15InstantLoopOutRequest\x12!\n" +
|
|
"\freceiver_key\x18\x01 \x01(\fR\vreceiverKey\x12\x1b\n" +
|
|
"\tswap_hash\x18\x02 \x01(\fR\bswapHash\x12\x16\n" +
|
|
"\x06expiry\x18\x03 \x01(\x05R\x06expiry\x12\"\n" +
|
|
"\rhtlc_fee_rate\x18\x04 \x01(\x04R\vhtlcFeeRate\x12'\n" +
|
|
"\x0freservation_ids\x18\x05 \x03(\fR\x0ereservationIds\x12M\n" +
|
|
"\x10protocol_version\x18\x06 \x01(\x0e2\".looprpc.InstantOutProtocolVersionR\x0fprotocolVersion\"Z\n" +
|
|
"\x16InstantLoopOutResponse\x12!\n" +
|
|
"\fswap_invoice\x18\x01 \x01(\tR\vswapInvoice\x12\x1d\n" +
|
|
"\n" +
|
|
"sender_key\x18\x02 \x01(\fR\tsenderKey\"9\n" +
|
|
"\x1aPollPaymentAcceptedRequest\x12\x1b\n" +
|
|
"\tswap_hash\x18\x01 \x01(\fR\bswapHash\"9\n" +
|
|
"\x1bPollPaymentAcceptedResponse\x12\x1a\n" +
|
|
"\baccepted\x18\x01 \x01(\bR\baccepted\"_\n" +
|
|
"\x12InitHtlcSigRequest\x12\x1b\n" +
|
|
"\tswap_hash\x18\x01 \x01(\fR\bswapHash\x12,\n" +
|
|
"\x12htlc_client_nonces\x18\x02 \x03(\fR\x10htlcClientNonces\"C\n" +
|
|
"\x13InitHtlcSigResponse\x12,\n" +
|
|
"\x12htlc_server_nonces\x18\x02 \x03(\fR\x10htlcServerNonces\"R\n" +
|
|
"\x12PushHtlcSigRequest\x12\x1b\n" +
|
|
"\tswap_hash\x18\x01 \x01(\fR\bswapHash\x12\x1f\n" +
|
|
"\vclient_sigs\x18\x02 \x03(\fR\n" +
|
|
"clientSigs\"6\n" +
|
|
"\x13PushHtlcSigResponse\x12\x1f\n" +
|
|
"\vserver_sigs\x18\x01 \x03(\fR\n" +
|
|
"serverSigs\"\xad\x01\n" +
|
|
"\x13PushPreimageRequest\x12\x1a\n" +
|
|
"\bpreimage\x18\x01 \x01(\fR\bpreimage\x12#\n" +
|
|
"\rclient_nonces\x18\x02 \x03(\fR\fclientNonces\x12*\n" +
|
|
"\x11client_sweep_addr\x18\x03 \x01(\tR\x0fclientSweepAddr\x12)\n" +
|
|
"\x11musig_tx_fee_rate\x18\x04 \x01(\x04R\x0emusigTxFeeRate\"g\n" +
|
|
"\x14PushPreimageResponse\x12*\n" +
|
|
"\x11musig2_sweep_sigs\x18\x01 \x03(\fR\x0fmusig2SweepSigs\x12#\n" +
|
|
"\rserver_nonces\x18\x02 \x03(\fR\fserverNonces\"7\n" +
|
|
"\x18CancelInstantSwapRequest\x12\x1b\n" +
|
|
"\tswap_hash\x18\x01 \x01(\fR\bswapHash\"\x1b\n" +
|
|
"\x19CancelInstantSwapResponse\"\\\n" +
|
|
"\x19GetInstantOutQuoteRequest\x12\x16\n" +
|
|
"\x06amount\x18\x01 \x01(\x04R\x06amount\x12'\n" +
|
|
"\x0freservation_ids\x18\x02 \x03(\fR\x0ereservationIds\"7\n" +
|
|
"\x1aGetInstantOutQuoteResponse\x12\x19\n" +
|
|
"\bswap_fee\x18\x01 \x01(\x04R\aswapFee*Q\n" +
|
|
"\x19InstantOutProtocolVersion\x12\x13\n" +
|
|
"\x0fINSTANTOUT_NONE\x10\x00\x12\x1f\n" +
|
|
"\x1bINSTANTOUT_FULL_RESERVATION\x10\x012\xeb\x04\n" +
|
|
"\x11InstantSwapServer\x12X\n" +
|
|
"\x15RequestInstantLoopOut\x12\x1e.looprpc.InstantLoopOutRequest\x1a\x1f.looprpc.InstantLoopOutResponse\x12`\n" +
|
|
"\x13PollPaymentAccepted\x12#.looprpc.PollPaymentAcceptedRequest\x1a$.looprpc.PollPaymentAcceptedResponse\x12H\n" +
|
|
"\vInitHtlcSig\x12\x1b.looprpc.InitHtlcSigRequest\x1a\x1c.looprpc.InitHtlcSigResponse\x12H\n" +
|
|
"\vPushHtlcSig\x12\x1b.looprpc.PushHtlcSigRequest\x1a\x1c.looprpc.PushHtlcSigResponse\x12K\n" +
|
|
"\fPushPreimage\x12\x1c.looprpc.PushPreimageRequest\x1a\x1d.looprpc.PushPreimageResponse\x12Z\n" +
|
|
"\x11CancelInstantSwap\x12!.looprpc.CancelInstantSwapRequest\x1a\".looprpc.CancelInstantSwapResponse\x12]\n" +
|
|
"\x12GetInstantOutQuote\x12\".looprpc.GetInstantOutQuoteRequest\x1a#.looprpc.GetInstantOutQuoteResponseB-Z+github.com/lightninglabs/loop/swapserverrpcb\x06proto3"
|
|
|
|
var (
|
|
file_instantout_proto_rawDescOnce sync.Once
|
|
file_instantout_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_instantout_proto_rawDescGZIP() []byte {
|
|
file_instantout_proto_rawDescOnce.Do(func() {
|
|
file_instantout_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_instantout_proto_rawDesc), len(file_instantout_proto_rawDesc)))
|
|
})
|
|
return file_instantout_proto_rawDescData
|
|
}
|
|
|
|
var file_instantout_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_instantout_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
|
var file_instantout_proto_goTypes = []any{
|
|
(InstantOutProtocolVersion)(0), // 0: looprpc.InstantOutProtocolVersion
|
|
(*InstantLoopOutRequest)(nil), // 1: looprpc.InstantLoopOutRequest
|
|
(*InstantLoopOutResponse)(nil), // 2: looprpc.InstantLoopOutResponse
|
|
(*PollPaymentAcceptedRequest)(nil), // 3: looprpc.PollPaymentAcceptedRequest
|
|
(*PollPaymentAcceptedResponse)(nil), // 4: looprpc.PollPaymentAcceptedResponse
|
|
(*InitHtlcSigRequest)(nil), // 5: looprpc.InitHtlcSigRequest
|
|
(*InitHtlcSigResponse)(nil), // 6: looprpc.InitHtlcSigResponse
|
|
(*PushHtlcSigRequest)(nil), // 7: looprpc.PushHtlcSigRequest
|
|
(*PushHtlcSigResponse)(nil), // 8: looprpc.PushHtlcSigResponse
|
|
(*PushPreimageRequest)(nil), // 9: looprpc.PushPreimageRequest
|
|
(*PushPreimageResponse)(nil), // 10: looprpc.PushPreimageResponse
|
|
(*CancelInstantSwapRequest)(nil), // 11: looprpc.CancelInstantSwapRequest
|
|
(*CancelInstantSwapResponse)(nil), // 12: looprpc.CancelInstantSwapResponse
|
|
(*GetInstantOutQuoteRequest)(nil), // 13: looprpc.GetInstantOutQuoteRequest
|
|
(*GetInstantOutQuoteResponse)(nil), // 14: looprpc.GetInstantOutQuoteResponse
|
|
}
|
|
var file_instantout_proto_depIdxs = []int32{
|
|
0, // 0: looprpc.InstantLoopOutRequest.protocol_version:type_name -> looprpc.InstantOutProtocolVersion
|
|
1, // 1: looprpc.InstantSwapServer.RequestInstantLoopOut:input_type -> looprpc.InstantLoopOutRequest
|
|
3, // 2: looprpc.InstantSwapServer.PollPaymentAccepted:input_type -> looprpc.PollPaymentAcceptedRequest
|
|
5, // 3: looprpc.InstantSwapServer.InitHtlcSig:input_type -> looprpc.InitHtlcSigRequest
|
|
7, // 4: looprpc.InstantSwapServer.PushHtlcSig:input_type -> looprpc.PushHtlcSigRequest
|
|
9, // 5: looprpc.InstantSwapServer.PushPreimage:input_type -> looprpc.PushPreimageRequest
|
|
11, // 6: looprpc.InstantSwapServer.CancelInstantSwap:input_type -> looprpc.CancelInstantSwapRequest
|
|
13, // 7: looprpc.InstantSwapServer.GetInstantOutQuote:input_type -> looprpc.GetInstantOutQuoteRequest
|
|
2, // 8: looprpc.InstantSwapServer.RequestInstantLoopOut:output_type -> looprpc.InstantLoopOutResponse
|
|
4, // 9: looprpc.InstantSwapServer.PollPaymentAccepted:output_type -> looprpc.PollPaymentAcceptedResponse
|
|
6, // 10: looprpc.InstantSwapServer.InitHtlcSig:output_type -> looprpc.InitHtlcSigResponse
|
|
8, // 11: looprpc.InstantSwapServer.PushHtlcSig:output_type -> looprpc.PushHtlcSigResponse
|
|
10, // 12: looprpc.InstantSwapServer.PushPreimage:output_type -> looprpc.PushPreimageResponse
|
|
12, // 13: looprpc.InstantSwapServer.CancelInstantSwap:output_type -> looprpc.CancelInstantSwapResponse
|
|
14, // 14: looprpc.InstantSwapServer.GetInstantOutQuote:output_type -> looprpc.GetInstantOutQuoteResponse
|
|
8, // [8:15] is the sub-list for method output_type
|
|
1, // [1:8] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_instantout_proto_init() }
|
|
func file_instantout_proto_init() {
|
|
if File_instantout_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_instantout_proto_rawDesc), len(file_instantout_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 14,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_instantout_proto_goTypes,
|
|
DependencyIndexes: file_instantout_proto_depIdxs,
|
|
EnumInfos: file_instantout_proto_enumTypes,
|
|
MessageInfos: file_instantout_proto_msgTypes,
|
|
}.Build()
|
|
File_instantout_proto = out.File
|
|
file_instantout_proto_goTypes = nil
|
|
file_instantout_proto_depIdxs = nil
|
|
}
|