swapserverrpc

package module
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
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,
	}
)

Enum value maps for InstantOutProtocolVersion.

View Source
var (
	ReservationProtocolVersion_name = map[int32]string{
		0: "RESERVATION_NONE",
		1: "RESERVATION_SERVER_NOTIFY",
	}
	ReservationProtocolVersion_value = map[string]int32{
		"RESERVATION_NONE":          0,
		"RESERVATION_SERVER_NOTIFY": 1,
	}
)

Enum value maps for ReservationProtocolVersion.

View Source
var (
	ProtocolVersion_name = map[int32]string{
		0:  "LEGACY",
		1:  "MULTI_LOOP_OUT",
		2:  "NATIVE_SEGWIT_LOOP_IN",
		3:  "PREIMAGE_PUSH_LOOP_OUT",
		4:  "USER_EXPIRY_LOOP_OUT",
		5:  "HTLC_V2",
		6:  "MULTI_LOOP_IN",
		7:  "LOOP_OUT_CANCEL",
		8:  "PROBE",
		9:  "ROUTING_PLUGIN",
		10: "HTLC_V3",
		11: "MUSIG2",
	}
	ProtocolVersion_value = map[string]int32{
		"LEGACY":                 0,
		"MULTI_LOOP_OUT":         1,
		"NATIVE_SEGWIT_LOOP_IN":  2,
		"PREIMAGE_PUSH_LOOP_OUT": 3,
		"USER_EXPIRY_LOOP_OUT":   4,
		"HTLC_V2":                5,
		"MULTI_LOOP_IN":          6,
		"LOOP_OUT_CANCEL":        7,
		"PROBE":                  8,
		"ROUTING_PLUGIN":         9,
		"HTLC_V3":                10,
		"MUSIG2":                 11,
	}
)

Enum value maps for ProtocolVersion.

View Source
var (
	ServerSwapState_name = map[int32]string{
		0:  "SERVER_INITIATED",
		1:  "SERVER_HTLC_PUBLISHED",
		2:  "SERVER_SUCCESS",
		3:  "SERVER_FAILED_UNKNOWN",
		4:  "SERVER_FAILED_NO_HTLC",
		5:  "SERVER_FAILED_INVALID_HTLC_AMOUNT",
		6:  "SERVER_FAILED_OFF_CHAIN_TIMEOUT",
		7:  "SERVER_FAILED_TIMEOUT",
		8:  "SERVER_FAILED_SWAP_DEADLINE",
		9:  "SERVER_FAILED_HTLC_PUBLICATION",
		10: "SERVER_TIMEOUT_PUBLISHED",
		11: "SERVER_UNEXPECTED_FAILURE",
		12: "SERVER_HTLC_CONFIRMED",
		13: "SERVER_CLIENT_PREPAY_CANCEL",
		14: "SERVER_CLIENT_INVOICE_CANCEL",
		15: "SERVER_FAILED_MULTIPLE_SWAP_SCRIPTS",
		16: "SERVER_FAILED_INITIALIZATION",
	}
	ServerSwapState_value = map[string]int32{
		"SERVER_INITIATED":                    0,
		"SERVER_HTLC_PUBLISHED":               1,
		"SERVER_SUCCESS":                      2,
		"SERVER_FAILED_UNKNOWN":               3,
		"SERVER_FAILED_NO_HTLC":               4,
		"SERVER_FAILED_INVALID_HTLC_AMOUNT":   5,
		"SERVER_FAILED_OFF_CHAIN_TIMEOUT":     6,
		"SERVER_FAILED_TIMEOUT":               7,
		"SERVER_FAILED_SWAP_DEADLINE":         8,
		"SERVER_FAILED_HTLC_PUBLICATION":      9,
		"SERVER_TIMEOUT_PUBLISHED":            10,
		"SERVER_UNEXPECTED_FAILURE":           11,
		"SERVER_HTLC_CONFIRMED":               12,
		"SERVER_CLIENT_PREPAY_CANCEL":         13,
		"SERVER_CLIENT_INVOICE_CANCEL":        14,
		"SERVER_FAILED_MULTIPLE_SWAP_SCRIPTS": 15,
		"SERVER_FAILED_INITIALIZATION":        16,
	}
)

Enum value maps for ServerSwapState.

View Source
var (
	RoutePaymentType_name = map[int32]string{
		0: "ROUTE_UNKNOWN",
		1: "PREPAY_ROUTE",
		2: "INVOICE_ROUTE",
	}
	RoutePaymentType_value = map[string]int32{
		"ROUTE_UNKNOWN": 0,
		"PREPAY_ROUTE":  1,
		"INVOICE_ROUTE": 2,
	}
)

Enum value maps for RoutePaymentType.

View Source
var (
	PaymentFailureReason_name = map[int32]string{
		0: "LND_FAILURE_REASON_NONE",
		1: "LND_FAILURE_REASON_TIMEOUT",
		2: "LND_FAILURE_REASON_NO_ROUTE",
		3: "LND_FAILURE_REASON_ERROR",
		4: "LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS",
		5: "LND_FAILURE_REASON_INSUFFICIENT_BALANCE",
	}
	PaymentFailureReason_value = map[string]int32{
		"LND_FAILURE_REASON_NONE":                      0,
		"LND_FAILURE_REASON_TIMEOUT":                   1,
		"LND_FAILURE_REASON_NO_ROUTE":                  2,
		"LND_FAILURE_REASON_ERROR":                     3,
		"LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS": 4,
		"LND_FAILURE_REASON_INSUFFICIENT_BALANCE":      5,
	}
)

Enum value maps for PaymentFailureReason.

View Source
var (
	RoutingPlugin_name = map[int32]string{
		0: "NONE",
		1: "LOW_HIGH",
	}
	RoutingPlugin_value = map[string]int32{
		"NONE":     0,
		"LOW_HIGH": 1,
	}
)

Enum value maps for RoutingPlugin.

View Source
var (
	StaticAddressProtocolVersion_name = map[int32]string{
		0: "V0",
	}
	StaticAddressProtocolVersion_value = map[string]int32{
		"V0": 0,
	}
)

Enum value maps for StaticAddressProtocolVersion.

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_instantout_proto protoreflect.FileDescriptor
View Source
var File_reservation_proto protoreflect.FileDescriptor
View Source
var File_server_proto protoreflect.FileDescriptor
View Source
var InstantSwapServer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "looprpc.InstantSwapServer",
	HandlerType: (*InstantSwapServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RequestInstantLoopOut",
			Handler:    _InstantSwapServer_RequestInstantLoopOut_Handler,
		},
		{
			MethodName: "PollPaymentAccepted",
			Handler:    _InstantSwapServer_PollPaymentAccepted_Handler,
		},
		{
			MethodName: "InitHtlcSig",
			Handler:    _InstantSwapServer_InitHtlcSig_Handler,
		},
		{
			MethodName: "PushHtlcSig",
			Handler:    _InstantSwapServer_PushHtlcSig_Handler,
		},
		{
			MethodName: "PushPreimage",
			Handler:    _InstantSwapServer_PushPreimage_Handler,
		},
		{
			MethodName: "CancelInstantSwap",
			Handler:    _InstantSwapServer_CancelInstantSwap_Handler,
		},
		{
			MethodName: "GetInstantOutQuote",
			Handler:    _InstantSwapServer_GetInstantOutQuote_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "instantout.proto",
}

InstantSwapServer_ServiceDesc is the grpc.ServiceDesc for InstantSwapServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ReservationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "looprpc.ReservationService",
	HandlerType: (*ReservationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "OpenReservation",
			Handler:    _ReservationService_OpenReservation_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ReservationNotificationStream",
			Handler:       _ReservationService_ReservationNotificationStream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "reservation.proto",
}

ReservationService_ServiceDesc is the grpc.ServiceDesc for ReservationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var StaticAddressServer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "looprpc.StaticAddressServer",
	HandlerType: (*StaticAddressServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ServerNewAddress",
			Handler:    _StaticAddressServer_ServerNewAddress_Handler,
		},
		{
			MethodName: "ServerWithdrawDeposits",
			Handler:    _StaticAddressServer_ServerWithdrawDeposits_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "server.proto",
}

StaticAddressServer_ServiceDesc is the grpc.ServiceDesc for StaticAddressServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var SwapServer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "looprpc.SwapServer",
	HandlerType: (*SwapServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "LoopOutTerms",
			Handler:    _SwapServer_LoopOutTerms_Handler,
		},
		{
			MethodName: "NewLoopOutSwap",
			Handler:    _SwapServer_NewLoopOutSwap_Handler,
		},
		{
			MethodName: "LoopOutPushPreimage",
			Handler:    _SwapServer_LoopOutPushPreimage_Handler,
		},
		{
			MethodName: "LoopOutQuote",
			Handler:    _SwapServer_LoopOutQuote_Handler,
		},
		{
			MethodName: "LoopInTerms",
			Handler:    _SwapServer_LoopInTerms_Handler,
		},
		{
			MethodName: "NewLoopInSwap",
			Handler:    _SwapServer_NewLoopInSwap_Handler,
		},
		{
			MethodName: "LoopInQuote",
			Handler:    _SwapServer_LoopInQuote_Handler,
		},
		{
			MethodName: "CancelLoopOutSwap",
			Handler:    _SwapServer_CancelLoopOutSwap_Handler,
		},
		{
			MethodName: "Probe",
			Handler:    _SwapServer_Probe_Handler,
		},
		{
			MethodName: "RecommendRoutingPlugin",
			Handler:    _SwapServer_RecommendRoutingPlugin_Handler,
		},
		{
			MethodName: "ReportRoutingResult",
			Handler:    _SwapServer_ReportRoutingResult_Handler,
		},
		{
			MethodName: "MuSig2SignSweep",
			Handler:    _SwapServer_MuSig2SignSweep_Handler,
		},
		{
			MethodName: "PushKey",
			Handler:    _SwapServer_PushKey_Handler,
		},
		{
			MethodName: "FetchL402",
			Handler:    _SwapServer_FetchL402_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeLoopOutUpdates",
			Handler:       _SwapServer_SubscribeLoopOutUpdates_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeLoopInUpdates",
			Handler:       _SwapServer_SubscribeLoopInUpdates_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeNotifications",
			Handler:       _SwapServer_SubscribeNotifications_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "server.proto",
}

SwapServer_ServiceDesc is the grpc.ServiceDesc for SwapServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInstantSwapServerServer added in v1.0.7

func RegisterInstantSwapServerServer(s grpc.ServiceRegistrar, srv InstantSwapServerServer)

func RegisterReservationServiceServer added in v1.0.6

func RegisterReservationServiceServer(s grpc.ServiceRegistrar, srv ReservationServiceServer)

func RegisterStaticAddressServerServer added in v1.0.9

func RegisterStaticAddressServerServer(s grpc.ServiceRegistrar, srv StaticAddressServerServer)

func RegisterSwapServerServer

func RegisterSwapServerServer(s grpc.ServiceRegistrar, srv SwapServerServer)

Types

type CancelInstantSwapRequest added in v1.0.7

type CancelInstantSwapRequest struct {

	// The hash of the swap invoice.
	SwapHash []byte `protobuf:"bytes,1,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelInstantSwapRequest) Descriptor deprecated added in v1.0.7

func (*CancelInstantSwapRequest) Descriptor() ([]byte, []int)

Deprecated: Use CancelInstantSwapRequest.ProtoReflect.Descriptor instead.

func (*CancelInstantSwapRequest) GetSwapHash added in v1.0.7

func (x *CancelInstantSwapRequest) GetSwapHash() []byte

func (*CancelInstantSwapRequest) ProtoMessage added in v1.0.7

func (*CancelInstantSwapRequest) ProtoMessage()

func (*CancelInstantSwapRequest) ProtoReflect added in v1.0.7

func (x *CancelInstantSwapRequest) ProtoReflect() protoreflect.Message

func (*CancelInstantSwapRequest) Reset added in v1.0.7

func (x *CancelInstantSwapRequest) Reset()

func (*CancelInstantSwapRequest) String added in v1.0.7

func (x *CancelInstantSwapRequest) String() string

type CancelInstantSwapResponse added in v1.0.7

type CancelInstantSwapResponse struct {
	// contains filtered or unexported fields
}

func (*CancelInstantSwapResponse) Descriptor deprecated added in v1.0.7

func (*CancelInstantSwapResponse) Descriptor() ([]byte, []int)

Deprecated: Use CancelInstantSwapResponse.ProtoReflect.Descriptor instead.

func (*CancelInstantSwapResponse) ProtoMessage added in v1.0.7

func (*CancelInstantSwapResponse) ProtoMessage()

func (*CancelInstantSwapResponse) ProtoReflect added in v1.0.7

func (*CancelInstantSwapResponse) Reset added in v1.0.7

func (x *CancelInstantSwapResponse) Reset()

func (*CancelInstantSwapResponse) String added in v1.0.7

func (x *CancelInstantSwapResponse) String() string

type CancelLoopOutSwapRequest

type CancelLoopOutSwapRequest struct {

	// The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The swap hash.
	SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	// The payment address for the swap invoice, used to ensure that only the
	// swap owner can cancel the payment.
	PaymentAddress []byte `protobuf:"bytes,3,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
	// Additional information about the swap cancelation.
	//
	// Types that are assignable to CancelInfo:
	//
	//	*CancelLoopOutSwapRequest_RouteCancel
	CancelInfo isCancelLoopOutSwapRequest_CancelInfo `protobuf_oneof:"cancel_info"`
	// contains filtered or unexported fields
}

func (*CancelLoopOutSwapRequest) Descriptor deprecated

func (*CancelLoopOutSwapRequest) Descriptor() ([]byte, []int)

Deprecated: Use CancelLoopOutSwapRequest.ProtoReflect.Descriptor instead.

func (*CancelLoopOutSwapRequest) GetCancelInfo

func (m *CancelLoopOutSwapRequest) GetCancelInfo() isCancelLoopOutSwapRequest_CancelInfo

func (*CancelLoopOutSwapRequest) GetPaymentAddress

func (x *CancelLoopOutSwapRequest) GetPaymentAddress() []byte

func (*CancelLoopOutSwapRequest) GetProtocolVersion

func (x *CancelLoopOutSwapRequest) GetProtocolVersion() ProtocolVersion

func (*CancelLoopOutSwapRequest) GetRouteCancel

func (x *CancelLoopOutSwapRequest) GetRouteCancel() *RouteCancel

func (*CancelLoopOutSwapRequest) GetSwapHash

func (x *CancelLoopOutSwapRequest) GetSwapHash() []byte

func (*CancelLoopOutSwapRequest) ProtoMessage

func (*CancelLoopOutSwapRequest) ProtoMessage()

func (*CancelLoopOutSwapRequest) ProtoReflect

func (x *CancelLoopOutSwapRequest) ProtoReflect() protoreflect.Message

func (*CancelLoopOutSwapRequest) Reset

func (x *CancelLoopOutSwapRequest) Reset()

func (*CancelLoopOutSwapRequest) String

func (x *CancelLoopOutSwapRequest) String() string

type CancelLoopOutSwapRequest_RouteCancel

type CancelLoopOutSwapRequest_RouteCancel struct {
	RouteCancel *RouteCancel `protobuf:"bytes,5,opt,name=route_cancel,json=routeCancel,proto3,oneof"`
}

type CancelLoopOutSwapResponse

type CancelLoopOutSwapResponse struct {
	// contains filtered or unexported fields
}

func (*CancelLoopOutSwapResponse) Descriptor deprecated

func (*CancelLoopOutSwapResponse) Descriptor() ([]byte, []int)

Deprecated: Use CancelLoopOutSwapResponse.ProtoReflect.Descriptor instead.

func (*CancelLoopOutSwapResponse) ProtoMessage

func (*CancelLoopOutSwapResponse) ProtoMessage()

func (*CancelLoopOutSwapResponse) ProtoReflect

func (*CancelLoopOutSwapResponse) Reset

func (x *CancelLoopOutSwapResponse) Reset()

func (*CancelLoopOutSwapResponse) String

func (x *CancelLoopOutSwapResponse) String() string

type FetchL402Request added in v1.0.6

type FetchL402Request struct {
	// contains filtered or unexported fields
}

FetchL402Request is an empty request sent from the client to the server to fetch the lnd L402.

func (*FetchL402Request) Descriptor deprecated added in v1.0.6

func (*FetchL402Request) Descriptor() ([]byte, []int)

Deprecated: Use FetchL402Request.ProtoReflect.Descriptor instead.

func (*FetchL402Request) ProtoMessage added in v1.0.6

func (*FetchL402Request) ProtoMessage()

func (*FetchL402Request) ProtoReflect added in v1.0.6

func (x *FetchL402Request) ProtoReflect() protoreflect.Message

func (*FetchL402Request) Reset added in v1.0.6

func (x *FetchL402Request) Reset()

func (*FetchL402Request) String added in v1.0.6

func (x *FetchL402Request) String() string

type FetchL402Response added in v1.0.6

type FetchL402Response struct {
	// contains filtered or unexported fields
}

FetchL402Response is an empty response sent from the server to the client to confirm the lnd L402.

func (*FetchL402Response) Descriptor deprecated added in v1.0.6

func (*FetchL402Response) Descriptor() ([]byte, []int)

Deprecated: Use FetchL402Response.ProtoReflect.Descriptor instead.

func (*FetchL402Response) ProtoMessage added in v1.0.6

func (*FetchL402Response) ProtoMessage()

func (*FetchL402Response) ProtoReflect added in v1.0.6

func (x *FetchL402Response) ProtoReflect() protoreflect.Message

func (*FetchL402Response) Reset added in v1.0.6

func (x *FetchL402Response) Reset()

func (*FetchL402Response) String added in v1.0.6

func (x *FetchL402Response) String() string

type GetInstantOutQuoteRequest added in v1.0.7

type GetInstantOutQuoteRequest struct {

	// The amount to swap in satoshis.
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInstantOutQuoteRequest) Descriptor deprecated added in v1.0.7

func (*GetInstantOutQuoteRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetInstantOutQuoteRequest.ProtoReflect.Descriptor instead.

func (*GetInstantOutQuoteRequest) GetAmount added in v1.0.7

func (x *GetInstantOutQuoteRequest) GetAmount() uint64

func (*GetInstantOutQuoteRequest) ProtoMessage added in v1.0.7

func (*GetInstantOutQuoteRequest) ProtoMessage()

func (*GetInstantOutQuoteRequest) ProtoReflect added in v1.0.7

func (*GetInstantOutQuoteRequest) Reset added in v1.0.7

func (x *GetInstantOutQuoteRequest) Reset()

func (*GetInstantOutQuoteRequest) String added in v1.0.7

func (x *GetInstantOutQuoteRequest) String() string

type GetInstantOutQuoteResponse added in v1.0.7

type GetInstantOutQuoteResponse struct {

	// The swap fee in satoshis.
	SwapFee uint64 `protobuf:"varint,1,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInstantOutQuoteResponse) Descriptor deprecated added in v1.0.7

func (*GetInstantOutQuoteResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetInstantOutQuoteResponse.ProtoReflect.Descriptor instead.

func (*GetInstantOutQuoteResponse) GetSwapFee added in v1.0.7

func (x *GetInstantOutQuoteResponse) GetSwapFee() uint64

func (*GetInstantOutQuoteResponse) ProtoMessage added in v1.0.7

func (*GetInstantOutQuoteResponse) ProtoMessage()

func (*GetInstantOutQuoteResponse) ProtoReflect added in v1.0.7

func (*GetInstantOutQuoteResponse) Reset added in v1.0.7

func (x *GetInstantOutQuoteResponse) Reset()

func (*GetInstantOutQuoteResponse) String added in v1.0.7

func (x *GetInstantOutQuoteResponse) String() string

type HopHint

type HopHint struct {

	// The public key of the node at the start of the channel.
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// The unique identifier of the channel.
	ChanId uint64 `protobuf:"varint,2,opt,name=chan_id,json=chanId,proto3" json:"chan_id,omitempty"`
	// The base fee of the channel denominated in millisatoshis.
	FeeBaseMsat uint32 `protobuf:"varint,3,opt,name=fee_base_msat,json=feeBaseMsat,proto3" json:"fee_base_msat,omitempty"`
	// The fee rate of the channel for sending one satoshi across it denominated in
	// millionths of a satoshi.
	FeeProportionalMillionths uint32 `` /* 139-byte string literal not displayed */
	// The time-lock delta of the channel.
	CltvExpiryDelta uint32 `protobuf:"varint,5,opt,name=cltv_expiry_delta,json=cltvExpiryDelta,proto3" json:"cltv_expiry_delta,omitempty"`
	// contains filtered or unexported fields
}

func (*HopHint) Descriptor deprecated

func (*HopHint) Descriptor() ([]byte, []int)

Deprecated: Use HopHint.ProtoReflect.Descriptor instead.

func (*HopHint) GetChanId

func (x *HopHint) GetChanId() uint64

func (*HopHint) GetCltvExpiryDelta

func (x *HopHint) GetCltvExpiryDelta() uint32

func (*HopHint) GetFeeBaseMsat

func (x *HopHint) GetFeeBaseMsat() uint32

func (*HopHint) GetFeeProportionalMillionths

func (x *HopHint) GetFeeProportionalMillionths() uint32

func (*HopHint) GetNodeId

func (x *HopHint) GetNodeId() string

func (*HopHint) ProtoMessage

func (*HopHint) ProtoMessage()

func (*HopHint) ProtoReflect

func (x *HopHint) ProtoReflect() protoreflect.Message

func (*HopHint) Reset

func (x *HopHint) Reset()

func (*HopHint) String

func (x *HopHint) String() string

type HtlcAttempt

type HtlcAttempt struct {

	// The number of hops from the htlc's failure hop that it needed to take
	// to reach the server's node.
	RemainingHops uint32 `protobuf:"varint,1,opt,name=remaining_hops,json=remainingHops,proto3" json:"remaining_hops,omitempty"`
	// contains filtered or unexported fields
}

func (*HtlcAttempt) Descriptor deprecated

func (*HtlcAttempt) Descriptor() ([]byte, []int)

Deprecated: Use HtlcAttempt.ProtoReflect.Descriptor instead.

func (*HtlcAttempt) GetRemainingHops

func (x *HtlcAttempt) GetRemainingHops() uint32

func (*HtlcAttempt) ProtoMessage

func (*HtlcAttempt) ProtoMessage()

func (*HtlcAttempt) ProtoReflect

func (x *HtlcAttempt) ProtoReflect() protoreflect.Message

func (*HtlcAttempt) Reset

func (x *HtlcAttempt) Reset()

func (*HtlcAttempt) String

func (x *HtlcAttempt) String() string

type InitHtlcSigRequest added in v1.0.7

type InitHtlcSigRequest struct {

	// 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"`
	// contains filtered or unexported fields
}

func (*InitHtlcSigRequest) Descriptor deprecated added in v1.0.7

func (*InitHtlcSigRequest) Descriptor() ([]byte, []int)

Deprecated: Use InitHtlcSigRequest.ProtoReflect.Descriptor instead.

func (*InitHtlcSigRequest) GetHtlcClientNonces added in v1.0.7

func (x *InitHtlcSigRequest) GetHtlcClientNonces() [][]byte

func (*InitHtlcSigRequest) GetSwapHash added in v1.0.7

func (x *InitHtlcSigRequest) GetSwapHash() []byte

func (*InitHtlcSigRequest) ProtoMessage added in v1.0.7

func (*InitHtlcSigRequest) ProtoMessage()

func (*InitHtlcSigRequest) ProtoReflect added in v1.0.7

func (x *InitHtlcSigRequest) ProtoReflect() protoreflect.Message

func (*InitHtlcSigRequest) Reset added in v1.0.7

func (x *InitHtlcSigRequest) Reset()

func (*InitHtlcSigRequest) String added in v1.0.7

func (x *InitHtlcSigRequest) String() string

type InitHtlcSigResponse added in v1.0.7

type InitHtlcSigResponse struct {

	// 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"`
	// contains filtered or unexported fields
}

func (*InitHtlcSigResponse) Descriptor deprecated added in v1.0.7

func (*InitHtlcSigResponse) Descriptor() ([]byte, []int)

Deprecated: Use InitHtlcSigResponse.ProtoReflect.Descriptor instead.

func (*InitHtlcSigResponse) GetHtlcServerNonces added in v1.0.7

func (x *InitHtlcSigResponse) GetHtlcServerNonces() [][]byte

func (*InitHtlcSigResponse) ProtoMessage added in v1.0.7

func (*InitHtlcSigResponse) ProtoMessage()

func (*InitHtlcSigResponse) ProtoReflect added in v1.0.7

func (x *InitHtlcSigResponse) ProtoReflect() protoreflect.Message

func (*InitHtlcSigResponse) Reset added in v1.0.7

func (x *InitHtlcSigResponse) Reset()

func (*InitHtlcSigResponse) String added in v1.0.7

func (x *InitHtlcSigResponse) String() string

type InstantLoopOutRequest added in v1.0.7

type InstantLoopOutRequest struct {

	// 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 `` /* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*InstantLoopOutRequest) Descriptor deprecated added in v1.0.7

func (*InstantLoopOutRequest) Descriptor() ([]byte, []int)

Deprecated: Use InstantLoopOutRequest.ProtoReflect.Descriptor instead.

func (*InstantLoopOutRequest) GetExpiry added in v1.0.7

func (x *InstantLoopOutRequest) GetExpiry() int32

func (*InstantLoopOutRequest) GetHtlcFeeRate added in v1.0.7

func (x *InstantLoopOutRequest) GetHtlcFeeRate() uint64

func (*InstantLoopOutRequest) GetProtocolVersion added in v1.0.7

func (x *InstantLoopOutRequest) GetProtocolVersion() InstantOutProtocolVersion

func (*InstantLoopOutRequest) GetReceiverKey added in v1.0.7

func (x *InstantLoopOutRequest) GetReceiverKey() []byte

func (*InstantLoopOutRequest) GetReservationIds added in v1.0.7

func (x *InstantLoopOutRequest) GetReservationIds() [][]byte

func (*InstantLoopOutRequest) GetSwapHash added in v1.0.7

func (x *InstantLoopOutRequest) GetSwapHash() []byte

func (*InstantLoopOutRequest) ProtoMessage added in v1.0.7

func (*InstantLoopOutRequest) ProtoMessage()

func (*InstantLoopOutRequest) ProtoReflect added in v1.0.7

func (x *InstantLoopOutRequest) ProtoReflect() protoreflect.Message

func (*InstantLoopOutRequest) Reset added in v1.0.7

func (x *InstantLoopOutRequest) Reset()

func (*InstantLoopOutRequest) String added in v1.0.7

func (x *InstantLoopOutRequest) String() string

type InstantLoopOutResponse added in v1.0.7

type InstantLoopOutResponse struct {

	// 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"`
	// contains filtered or unexported fields
}

func (*InstantLoopOutResponse) Descriptor deprecated added in v1.0.7

func (*InstantLoopOutResponse) Descriptor() ([]byte, []int)

Deprecated: Use InstantLoopOutResponse.ProtoReflect.Descriptor instead.

func (*InstantLoopOutResponse) GetSenderKey added in v1.0.7

func (x *InstantLoopOutResponse) GetSenderKey() []byte

func (*InstantLoopOutResponse) GetSwapInvoice added in v1.0.7

func (x *InstantLoopOutResponse) GetSwapInvoice() string

func (*InstantLoopOutResponse) ProtoMessage added in v1.0.7

func (*InstantLoopOutResponse) ProtoMessage()

func (*InstantLoopOutResponse) ProtoReflect added in v1.0.7

func (x *InstantLoopOutResponse) ProtoReflect() protoreflect.Message

func (*InstantLoopOutResponse) Reset added in v1.0.7

func (x *InstantLoopOutResponse) Reset()

func (*InstantLoopOutResponse) String added in v1.0.7

func (x *InstantLoopOutResponse) String() string

type InstantOutProtocolVersion added in v1.0.7

type InstantOutProtocolVersion int32
const (
	InstantOutProtocolVersion_INSTANTOUT_NONE             InstantOutProtocolVersion = 0
	InstantOutProtocolVersion_INSTANTOUT_FULL_RESERVATION InstantOutProtocolVersion = 1
)

func (InstantOutProtocolVersion) Descriptor added in v1.0.7

func (InstantOutProtocolVersion) Enum added in v1.0.7

func (InstantOutProtocolVersion) EnumDescriptor deprecated added in v1.0.7

func (InstantOutProtocolVersion) EnumDescriptor() ([]byte, []int)

Deprecated: Use InstantOutProtocolVersion.Descriptor instead.

func (InstantOutProtocolVersion) Number added in v1.0.7

func (InstantOutProtocolVersion) String added in v1.0.7

func (x InstantOutProtocolVersion) String() string

func (InstantOutProtocolVersion) Type added in v1.0.7

type InstantSwapServerClient added in v1.0.7

type InstantSwapServerClient interface {
	// RequestInstantLoopOut initiates an instant loop out swap.
	RequestInstantLoopOut(ctx context.Context, in *InstantLoopOutRequest, opts ...grpc.CallOption) (*InstantLoopOutResponse, error)
	// PollPaymentAccepted polls the server to see if the payment has been
	// accepted.
	PollPaymentAccepted(ctx context.Context, in *PollPaymentAcceptedRequest, opts ...grpc.CallOption) (*PollPaymentAcceptedResponse, error)
	// InitHtlcSig is called by the client to initiate the htlc sig exchange.
	InitHtlcSig(ctx context.Context, in *InitHtlcSigRequest, opts ...grpc.CallOption) (*InitHtlcSigResponse, error)
	// PushHtlcSig is called by the client to push the htlc sigs to the server.
	PushHtlcSig(ctx context.Context, in *PushHtlcSigRequest, opts ...grpc.CallOption) (*PushHtlcSigResponse, error)
	// PushPreimage is called by the client to push the preimage to the server.
	// This returns the musig2 signatures that the client needs to sweep the
	// htlc.
	PushPreimage(ctx context.Context, in *PushPreimageRequest, opts ...grpc.CallOption) (*PushPreimageResponse, error)
	// CancelInstantSwap tries to cancel the instant swap. This can only be
	// called if the swap has not been accepted yet. This allows the server to
	// release the reservation inputs.
	CancelInstantSwap(ctx context.Context, in *CancelInstantSwapRequest, opts ...grpc.CallOption) (*CancelInstantSwapResponse, error)
	// GetInstantOutQuote returns the absolute fee in satoshis for the swap and
	// the pubkey to query the route to estimate offchain payment fees.
	GetInstantOutQuote(ctx context.Context, in *GetInstantOutQuoteRequest, opts ...grpc.CallOption) (*GetInstantOutQuoteResponse, error)
}

InstantSwapServerClient is the client API for InstantSwapServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewInstantSwapServerClient added in v1.0.7

func NewInstantSwapServerClient(cc grpc.ClientConnInterface) InstantSwapServerClient

type InstantSwapServerServer added in v1.0.7

type InstantSwapServerServer interface {
	// RequestInstantLoopOut initiates an instant loop out swap.
	RequestInstantLoopOut(context.Context, *InstantLoopOutRequest) (*InstantLoopOutResponse, error)
	// PollPaymentAccepted polls the server to see if the payment has been
	// accepted.
	PollPaymentAccepted(context.Context, *PollPaymentAcceptedRequest) (*PollPaymentAcceptedResponse, error)
	// InitHtlcSig is called by the client to initiate the htlc sig exchange.
	InitHtlcSig(context.Context, *InitHtlcSigRequest) (*InitHtlcSigResponse, error)
	// PushHtlcSig is called by the client to push the htlc sigs to the server.
	PushHtlcSig(context.Context, *PushHtlcSigRequest) (*PushHtlcSigResponse, error)
	// PushPreimage is called by the client to push the preimage to the server.
	// This returns the musig2 signatures that the client needs to sweep the
	// htlc.
	PushPreimage(context.Context, *PushPreimageRequest) (*PushPreimageResponse, error)
	// CancelInstantSwap tries to cancel the instant swap. This can only be
	// called if the swap has not been accepted yet. This allows the server to
	// release the reservation inputs.
	CancelInstantSwap(context.Context, *CancelInstantSwapRequest) (*CancelInstantSwapResponse, error)
	// GetInstantOutQuote returns the absolute fee in satoshis for the swap and
	// the pubkey to query the route to estimate offchain payment fees.
	GetInstantOutQuote(context.Context, *GetInstantOutQuoteRequest) (*GetInstantOutQuoteResponse, error)
	// contains filtered or unexported methods
}

InstantSwapServerServer is the server API for InstantSwapServer service. All implementations must embed UnimplementedInstantSwapServerServer for forward compatibility

type MuSig2SignSweepReq added in v1.0.2

type MuSig2SignSweepReq struct {
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The swap hash.
	SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	// The payment address for the swap invoice, used to ensure that only the
	// swap owner can obtain the partial signature.
	PaymentAddress []byte `protobuf:"bytes,3,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
	// The local public nonce.
	Nonce []byte `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// The psbt of the sweep txn.
	SweepTxPsbt []byte `protobuf:"bytes,6,opt,name=sweep_tx_psbt,json=sweepTxPsbt,proto3" json:"sweep_tx_psbt,omitempty"`
	// The prevout information of the sweep txn.
	PrevoutInfo []*PrevoutInfo `protobuf:"bytes,7,rep,name=prevout_info,json=prevoutInfo,proto3" json:"prevout_info,omitempty"`
	// contains filtered or unexported fields
}

func (*MuSig2SignSweepReq) Descriptor deprecated added in v1.0.2

func (*MuSig2SignSweepReq) Descriptor() ([]byte, []int)

Deprecated: Use MuSig2SignSweepReq.ProtoReflect.Descriptor instead.

func (*MuSig2SignSweepReq) GetNonce added in v1.0.2

func (x *MuSig2SignSweepReq) GetNonce() []byte

func (*MuSig2SignSweepReq) GetPaymentAddress added in v1.0.2

func (x *MuSig2SignSweepReq) GetPaymentAddress() []byte

func (*MuSig2SignSweepReq) GetPrevoutInfo added in v1.0.6

func (x *MuSig2SignSweepReq) GetPrevoutInfo() []*PrevoutInfo

func (*MuSig2SignSweepReq) GetProtocolVersion added in v1.0.2

func (x *MuSig2SignSweepReq) GetProtocolVersion() ProtocolVersion

func (*MuSig2SignSweepReq) GetSwapHash added in v1.0.2

func (x *MuSig2SignSweepReq) GetSwapHash() []byte

func (*MuSig2SignSweepReq) GetSweepTxPsbt added in v1.0.3

func (x *MuSig2SignSweepReq) GetSweepTxPsbt() []byte

func (*MuSig2SignSweepReq) ProtoMessage added in v1.0.2

func (*MuSig2SignSweepReq) ProtoMessage()

func (*MuSig2SignSweepReq) ProtoReflect added in v1.0.2

func (x *MuSig2SignSweepReq) ProtoReflect() protoreflect.Message

func (*MuSig2SignSweepReq) Reset added in v1.0.2

func (x *MuSig2SignSweepReq) Reset()

func (*MuSig2SignSweepReq) String added in v1.0.2

func (x *MuSig2SignSweepReq) String() string

type MuSig2SignSweepRes added in v1.0.2

type MuSig2SignSweepRes struct {

	// The server side public nonce.
	Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// The partial signature of the server for the requested sighash.
	PartialSignature []byte `protobuf:"bytes,2,opt,name=partial_signature,json=partialSignature,proto3" json:"partial_signature,omitempty"`
	// contains filtered or unexported fields
}

func (*MuSig2SignSweepRes) Descriptor deprecated added in v1.0.2

func (*MuSig2SignSweepRes) Descriptor() ([]byte, []int)

Deprecated: Use MuSig2SignSweepRes.ProtoReflect.Descriptor instead.

func (*MuSig2SignSweepRes) GetNonce added in v1.0.2

func (x *MuSig2SignSweepRes) GetNonce() []byte

func (*MuSig2SignSweepRes) GetPartialSignature added in v1.0.2

func (x *MuSig2SignSweepRes) GetPartialSignature() []byte

func (*MuSig2SignSweepRes) ProtoMessage added in v1.0.2

func (*MuSig2SignSweepRes) ProtoMessage()

func (*MuSig2SignSweepRes) ProtoReflect added in v1.0.2

func (x *MuSig2SignSweepRes) ProtoReflect() protoreflect.Message

func (*MuSig2SignSweepRes) Reset added in v1.0.2

func (x *MuSig2SignSweepRes) Reset()

func (*MuSig2SignSweepRes) String added in v1.0.2

func (x *MuSig2SignSweepRes) String() string

type PaymentFailureReason

type PaymentFailureReason int32

PaymentFailureReason describes the reason that a payment failed. These values are copied directly from lnd.

const (
	// Payment isn't failed (yet).
	PaymentFailureReason_LND_FAILURE_REASON_NONE PaymentFailureReason = 0
	// There are more routes to try, but the payment timeout was exceeded.
	PaymentFailureReason_LND_FAILURE_REASON_TIMEOUT PaymentFailureReason = 1
	// All possible routes were tried and failed permanently. Or were no
	// routes to the destination at all.
	PaymentFailureReason_LND_FAILURE_REASON_NO_ROUTE PaymentFailureReason = 2
	// A non-recoverable error has occured.
	PaymentFailureReason_LND_FAILURE_REASON_ERROR PaymentFailureReason = 3
	// Payment details incorrect (unknown hash, invalid amt or
	// invalid final cltv delta)
	PaymentFailureReason_LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS PaymentFailureReason = 4
	// Insufficient local balance.
	PaymentFailureReason_LND_FAILURE_REASON_INSUFFICIENT_BALANCE PaymentFailureReason = 5
)

func (PaymentFailureReason) Descriptor

func (PaymentFailureReason) Enum

func (PaymentFailureReason) EnumDescriptor deprecated

func (PaymentFailureReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use PaymentFailureReason.Descriptor instead.

func (PaymentFailureReason) Number

func (PaymentFailureReason) String

func (x PaymentFailureReason) String() string

func (PaymentFailureReason) Type

type PollPaymentAcceptedRequest added in v1.0.7

type PollPaymentAcceptedRequest struct {

	// The hash of the swap invoice.
	SwapHash []byte `protobuf:"bytes,1,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*PollPaymentAcceptedRequest) Descriptor deprecated added in v1.0.7

func (*PollPaymentAcceptedRequest) Descriptor() ([]byte, []int)

Deprecated: Use PollPaymentAcceptedRequest.ProtoReflect.Descriptor instead.

func (*PollPaymentAcceptedRequest) GetSwapHash added in v1.0.7

func (x *PollPaymentAcceptedRequest) GetSwapHash() []byte

func (*PollPaymentAcceptedRequest) ProtoMessage added in v1.0.7

func (*PollPaymentAcceptedRequest) ProtoMessage()

func (*PollPaymentAcceptedRequest) ProtoReflect added in v1.0.7

func (*PollPaymentAcceptedRequest) Reset added in v1.0.7

func (x *PollPaymentAcceptedRequest) Reset()

func (*PollPaymentAcceptedRequest) String added in v1.0.7

func (x *PollPaymentAcceptedRequest) String() string

type PollPaymentAcceptedResponse added in v1.0.7

type PollPaymentAcceptedResponse struct {

	// Whether the payment has been accepted.
	Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
	// contains filtered or unexported fields
}

func (*PollPaymentAcceptedResponse) Descriptor deprecated added in v1.0.7

func (*PollPaymentAcceptedResponse) Descriptor() ([]byte, []int)

Deprecated: Use PollPaymentAcceptedResponse.ProtoReflect.Descriptor instead.

func (*PollPaymentAcceptedResponse) GetAccepted added in v1.0.7

func (x *PollPaymentAcceptedResponse) GetAccepted() bool

func (*PollPaymentAcceptedResponse) ProtoMessage added in v1.0.7

func (*PollPaymentAcceptedResponse) ProtoMessage()

func (*PollPaymentAcceptedResponse) ProtoReflect added in v1.0.7

func (*PollPaymentAcceptedResponse) Reset added in v1.0.7

func (x *PollPaymentAcceptedResponse) Reset()

func (*PollPaymentAcceptedResponse) String added in v1.0.7

func (x *PollPaymentAcceptedResponse) String() string

type PrevoutInfo added in v1.0.6

type PrevoutInfo struct {

	// The value of the txout.
	Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// The pk_script of the txout.
	PkScript []byte `protobuf:"bytes,2,opt,name=pk_script,json=pkScript,proto3" json:"pk_script,omitempty"`
	// The txid of the txout.
	TxidBytes []byte `protobuf:"bytes,3,opt,name=txid_bytes,json=txidBytes,proto3" json:"txid_bytes,omitempty"`
	// The index of the txout.
	OutputIndex uint32 `protobuf:"varint,4,opt,name=output_index,json=outputIndex,proto3" json:"output_index,omitempty"`
	// contains filtered or unexported fields
}

func (*PrevoutInfo) Descriptor deprecated added in v1.0.6

func (*PrevoutInfo) Descriptor() ([]byte, []int)

Deprecated: Use PrevoutInfo.ProtoReflect.Descriptor instead.

func (*PrevoutInfo) GetOutputIndex added in v1.0.6

func (x *PrevoutInfo) GetOutputIndex() uint32

func (*PrevoutInfo) GetPkScript added in v1.0.6

func (x *PrevoutInfo) GetPkScript() []byte

func (*PrevoutInfo) GetTxidBytes added in v1.0.6

func (x *PrevoutInfo) GetTxidBytes() []byte

func (*PrevoutInfo) GetValue added in v1.0.6

func (x *PrevoutInfo) GetValue() uint64

func (*PrevoutInfo) ProtoMessage added in v1.0.6

func (*PrevoutInfo) ProtoMessage()

func (*PrevoutInfo) ProtoReflect added in v1.0.6

func (x *PrevoutInfo) ProtoReflect() protoreflect.Message

func (*PrevoutInfo) Reset added in v1.0.6

func (x *PrevoutInfo) Reset()

func (*PrevoutInfo) String added in v1.0.6

func (x *PrevoutInfo) String() string

type ProtocolVersion

type ProtocolVersion int32

* This enum defines the protocol versions that clients may adhere to. Note that this is not a flagged enum. If a particular protocol version adds a feature, then in general all the preceding features are also supported. Exception to this is when features get deprecated.

const (
	// / No protocol version reported at all.
	ProtocolVersion_LEGACY ProtocolVersion = 0
	// / Client may attempt to send the loop out payment in multiple parts.
	ProtocolVersion_MULTI_LOOP_OUT ProtocolVersion = 1
	// *
	// Loop will use native segwit (P2WSH) htlcs by default, while externally
	// published htlcs may use native (P2WSH) or nested (NP2WSH) segwit as well.
	ProtocolVersion_NATIVE_SEGWIT_LOOP_IN ProtocolVersion = 2
	// Once the on chain loop out htlc is confirmed, the client can push the swap
	// preimage to the server to speed up claim of their off chain htlc (acquiring
	// incoming liquidity more quickly than if the server waited for the on chain
	// claim tx).
	ProtocolVersion_PREIMAGE_PUSH_LOOP_OUT ProtocolVersion = 3
	// The client will propose a cltv expiry height for loop out.
	ProtocolVersion_USER_EXPIRY_LOOP_OUT ProtocolVersion = 4
	// The client will use the new v2 HTLC scripts.
	ProtocolVersion_HTLC_V2 ProtocolVersion = 5
	// The client creates a probe invoice so that the server can perform a
	// multi-path probe.
	ProtocolVersion_MULTI_LOOP_IN ProtocolVersion = 6
	// The client supports loop out swap cancelation.
	ProtocolVersion_LOOP_OUT_CANCEL ProtocolVersion = 7
	// The client is able to ask the server to probe to test inbound liquidity
	// and provide more accurate loop-in fees.
	ProtocolVersion_PROBE ProtocolVersion = 8
	// The client may ask the server to use a custom routing helper plugin in
	// order to enhance off-chain payments corresponding to a swap.
	ProtocolVersion_ROUTING_PLUGIN ProtocolVersion = 9
	// The client will use the new v3 (taproot) HTLC scripts.
	ProtocolVersion_HTLC_V3 ProtocolVersion = 10
	// Enables MuSig2 signature scheme for swaps.
	ProtocolVersion_MUSIG2 ProtocolVersion = 11
)

func (ProtocolVersion) Descriptor

func (ProtocolVersion) Enum

func (x ProtocolVersion) Enum() *ProtocolVersion

func (ProtocolVersion) EnumDescriptor deprecated

func (ProtocolVersion) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtocolVersion.Descriptor instead.

func (ProtocolVersion) Number

func (ProtocolVersion) String

func (x ProtocolVersion) String() string

func (ProtocolVersion) Type

type PushHtlcSigRequest added in v1.0.7

type PushHtlcSigRequest struct {

	// 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"`
	// contains filtered or unexported fields
}

func (*PushHtlcSigRequest) Descriptor deprecated added in v1.0.7

func (*PushHtlcSigRequest) Descriptor() ([]byte, []int)

Deprecated: Use PushHtlcSigRequest.ProtoReflect.Descriptor instead.

func (*PushHtlcSigRequest) GetClientSigs added in v1.0.7

func (x *PushHtlcSigRequest) GetClientSigs() [][]byte

func (*PushHtlcSigRequest) GetSwapHash added in v1.0.7

func (x *PushHtlcSigRequest) GetSwapHash() []byte

func (*PushHtlcSigRequest) ProtoMessage added in v1.0.7

func (*PushHtlcSigRequest) ProtoMessage()

func (*PushHtlcSigRequest) ProtoReflect added in v1.0.7

func (x *PushHtlcSigRequest) ProtoReflect() protoreflect.Message

func (*PushHtlcSigRequest) Reset added in v1.0.7

func (x *PushHtlcSigRequest) Reset()

func (*PushHtlcSigRequest) String added in v1.0.7

func (x *PushHtlcSigRequest) String() string

type PushHtlcSigResponse added in v1.0.7

type PushHtlcSigResponse struct {

	// 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"`
	// contains filtered or unexported fields
}

func (*PushHtlcSigResponse) Descriptor deprecated added in v1.0.7

func (*PushHtlcSigResponse) Descriptor() ([]byte, []int)

Deprecated: Use PushHtlcSigResponse.ProtoReflect.Descriptor instead.

func (*PushHtlcSigResponse) GetServerSigs added in v1.0.7

func (x *PushHtlcSigResponse) GetServerSigs() [][]byte

func (*PushHtlcSigResponse) ProtoMessage added in v1.0.7

func (*PushHtlcSigResponse) ProtoMessage()

func (*PushHtlcSigResponse) ProtoReflect added in v1.0.7

func (x *PushHtlcSigResponse) ProtoReflect() protoreflect.Message

func (*PushHtlcSigResponse) Reset added in v1.0.7

func (x *PushHtlcSigResponse) Reset()

func (*PushHtlcSigResponse) String added in v1.0.7

func (x *PushHtlcSigResponse) String() string

type PushPreimageRequest added in v1.0.7

type PushPreimageRequest struct {

	// 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"`
	// contains filtered or unexported fields
}

func (*PushPreimageRequest) Descriptor deprecated added in v1.0.7

func (*PushPreimageRequest) Descriptor() ([]byte, []int)

Deprecated: Use PushPreimageRequest.ProtoReflect.Descriptor instead.

func (*PushPreimageRequest) GetClientNonces added in v1.0.7

func (x *PushPreimageRequest) GetClientNonces() [][]byte

func (*PushPreimageRequest) GetClientSweepAddr added in v1.0.7

func (x *PushPreimageRequest) GetClientSweepAddr() string

func (*PushPreimageRequest) GetMusigTxFeeRate added in v1.0.7

func (x *PushPreimageRequest) GetMusigTxFeeRate() uint64

func (*PushPreimageRequest) GetPreimage added in v1.0.7

func (x *PushPreimageRequest) GetPreimage() []byte

func (*PushPreimageRequest) ProtoMessage added in v1.0.7

func (*PushPreimageRequest) ProtoMessage()

func (*PushPreimageRequest) ProtoReflect added in v1.0.7

func (x *PushPreimageRequest) ProtoReflect() protoreflect.Message

func (*PushPreimageRequest) Reset added in v1.0.7

func (x *PushPreimageRequest) Reset()

func (*PushPreimageRequest) String added in v1.0.7

func (x *PushPreimageRequest) String() string

type PushPreimageResponse added in v1.0.7

type PushPreimageResponse struct {

	// 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"`
	// contains filtered or unexported fields
}

func (*PushPreimageResponse) Descriptor deprecated added in v1.0.7

func (*PushPreimageResponse) Descriptor() ([]byte, []int)

Deprecated: Use PushPreimageResponse.ProtoReflect.Descriptor instead.

func (*PushPreimageResponse) GetMusig2SweepSigs added in v1.0.7

func (x *PushPreimageResponse) GetMusig2SweepSigs() [][]byte

func (*PushPreimageResponse) GetServerNonces added in v1.0.7

func (x *PushPreimageResponse) GetServerNonces() [][]byte

func (*PushPreimageResponse) ProtoMessage added in v1.0.7

func (*PushPreimageResponse) ProtoMessage()

func (*PushPreimageResponse) ProtoReflect added in v1.0.7

func (x *PushPreimageResponse) ProtoReflect() protoreflect.Message

func (*PushPreimageResponse) Reset added in v1.0.7

func (x *PushPreimageResponse) Reset()

func (*PushPreimageResponse) String added in v1.0.7

func (x *PushPreimageResponse) String() string

type RecommendRoutingPluginReq added in v1.0.1

type RecommendRoutingPluginReq struct {
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The hash of the swap requesting a routing plugin.
	SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	// The payment address for the swap invoice, used to ensure that only the
	// swap owner can request routing plugin recommendation.
	PaymentAddress []byte `protobuf:"bytes,3,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
	// contains filtered or unexported fields
}

func (*RecommendRoutingPluginReq) Descriptor deprecated added in v1.0.1

func (*RecommendRoutingPluginReq) Descriptor() ([]byte, []int)

Deprecated: Use RecommendRoutingPluginReq.ProtoReflect.Descriptor instead.

func (*RecommendRoutingPluginReq) GetPaymentAddress added in v1.0.1

func (x *RecommendRoutingPluginReq) GetPaymentAddress() []byte

func (*RecommendRoutingPluginReq) GetProtocolVersion added in v1.0.1

func (x *RecommendRoutingPluginReq) GetProtocolVersion() ProtocolVersion

func (*RecommendRoutingPluginReq) GetSwapHash added in v1.0.1

func (x *RecommendRoutingPluginReq) GetSwapHash() []byte

func (*RecommendRoutingPluginReq) ProtoMessage added in v1.0.1

func (*RecommendRoutingPluginReq) ProtoMessage()

func (*RecommendRoutingPluginReq) ProtoReflect added in v1.0.1

func (*RecommendRoutingPluginReq) Reset added in v1.0.1

func (x *RecommendRoutingPluginReq) Reset()

func (*RecommendRoutingPluginReq) String added in v1.0.1

func (x *RecommendRoutingPluginReq) String() string

type RecommendRoutingPluginRes added in v1.0.1

type RecommendRoutingPluginRes struct {

	// The routing plugin to use for off-chain payments.
	Plugin RoutingPlugin `protobuf:"varint,1,opt,name=plugin,proto3,enum=looprpc.RoutingPlugin" json:"plugin,omitempty"`
	// contains filtered or unexported fields
}

func (*RecommendRoutingPluginRes) Descriptor deprecated added in v1.0.1

func (*RecommendRoutingPluginRes) Descriptor() ([]byte, []int)

Deprecated: Use RecommendRoutingPluginRes.ProtoReflect.Descriptor instead.

func (*RecommendRoutingPluginRes) GetPlugin added in v1.0.1

func (*RecommendRoutingPluginRes) ProtoMessage added in v1.0.1

func (*RecommendRoutingPluginRes) ProtoMessage()

func (*RecommendRoutingPluginRes) ProtoReflect added in v1.0.1

func (*RecommendRoutingPluginRes) Reset added in v1.0.1

func (x *RecommendRoutingPluginRes) Reset()

func (*RecommendRoutingPluginRes) String added in v1.0.1

func (x *RecommendRoutingPluginRes) String() string

type ReportRoutingResultReq added in v1.0.1

type ReportRoutingResultReq struct {
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The swap hash.
	SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	// The payment address for the swap invoice, used to ensure that only the
	// swap owner can report routing result.
	PaymentAddress []byte `protobuf:"bytes,3,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
	// The routing plugin that was used.
	Plugin RoutingPlugin `protobuf:"varint,4,opt,name=plugin,proto3,enum=looprpc.RoutingPlugin" json:"plugin,omitempty"`
	// Whether this payment succeeded.
	Success bool `protobuf:"varint,5,opt,name=success,proto3" json:"success,omitempty"`
	// The number of payment attempts using the plugin.
	Attempts int32 `protobuf:"varint,6,opt,name=attempts,proto3" json:"attempts,omitempty"`
	// Total time used in milliseconds.
	TotalTime int64 `protobuf:"varint,7,opt,name=total_time,json=totalTime,proto3" json:"total_time,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportRoutingResultReq) Descriptor deprecated added in v1.0.1

func (*ReportRoutingResultReq) Descriptor() ([]byte, []int)

Deprecated: Use ReportRoutingResultReq.ProtoReflect.Descriptor instead.

func (*ReportRoutingResultReq) GetAttempts added in v1.0.1

func (x *ReportRoutingResultReq) GetAttempts() int32

func (*ReportRoutingResultReq) GetPaymentAddress added in v1.0.1

func (x *ReportRoutingResultReq) GetPaymentAddress() []byte

func (*ReportRoutingResultReq) GetPlugin added in v1.0.1

func (x *ReportRoutingResultReq) GetPlugin() RoutingPlugin

func (*ReportRoutingResultReq) GetProtocolVersion added in v1.0.1

func (x *ReportRoutingResultReq) GetProtocolVersion() ProtocolVersion

func (*ReportRoutingResultReq) GetSuccess added in v1.0.1

func (x *ReportRoutingResultReq) GetSuccess() bool

func (*ReportRoutingResultReq) GetSwapHash added in v1.0.1

func (x *ReportRoutingResultReq) GetSwapHash() []byte

func (*ReportRoutingResultReq) GetTotalTime added in v1.0.1

func (x *ReportRoutingResultReq) GetTotalTime() int64

func (*ReportRoutingResultReq) ProtoMessage added in v1.0.1

func (*ReportRoutingResultReq) ProtoMessage()

func (*ReportRoutingResultReq) ProtoReflect added in v1.0.1

func (x *ReportRoutingResultReq) ProtoReflect() protoreflect.Message

func (*ReportRoutingResultReq) Reset added in v1.0.1

func (x *ReportRoutingResultReq) Reset()

func (*ReportRoutingResultReq) String added in v1.0.1

func (x *ReportRoutingResultReq) String() string

type ReportRoutingResultRes added in v1.0.1

type ReportRoutingResultRes struct {
	// contains filtered or unexported fields
}

func (*ReportRoutingResultRes) Descriptor deprecated added in v1.0.1

func (*ReportRoutingResultRes) Descriptor() ([]byte, []int)

Deprecated: Use ReportRoutingResultRes.ProtoReflect.Descriptor instead.

func (*ReportRoutingResultRes) ProtoMessage added in v1.0.1

func (*ReportRoutingResultRes) ProtoMessage()

func (*ReportRoutingResultRes) ProtoReflect added in v1.0.1

func (x *ReportRoutingResultRes) ProtoReflect() protoreflect.Message

func (*ReportRoutingResultRes) Reset added in v1.0.1

func (x *ReportRoutingResultRes) Reset()

func (*ReportRoutingResultRes) String added in v1.0.1

func (x *ReportRoutingResultRes) String() string

type ReservationNotificationRequest added in v1.0.6

type ReservationNotificationRequest struct {

	// protocol_version is the maximum version the client supports.
	ProtocolVersion ReservationProtocolVersion `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

ReservationNotificationRequest is an empty request sent from the client to the server to open a stream to receive reservation notifications.

func (*ReservationNotificationRequest) Descriptor deprecated added in v1.0.6

func (*ReservationNotificationRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReservationNotificationRequest.ProtoReflect.Descriptor instead.

func (*ReservationNotificationRequest) GetProtocolVersion added in v1.0.9

func (*ReservationNotificationRequest) ProtoMessage added in v1.0.6

func (*ReservationNotificationRequest) ProtoMessage()

func (*ReservationNotificationRequest) ProtoReflect added in v1.0.6

func (*ReservationNotificationRequest) Reset added in v1.0.6

func (x *ReservationNotificationRequest) Reset()

func (*ReservationNotificationRequest) String added in v1.0.6

type ReservationProtocolVersion added in v1.0.6

type ReservationProtocolVersion int32

ReservationProtocolVersion is the version of the reservation protocol.

const (
	// RESERVATION_NONE is the default value and means that the reservation
	// protocol version is not set.
	ReservationProtocolVersion_RESERVATION_NONE ReservationProtocolVersion = 0
	// RESERVATION_SERVER_NOTIFY is the first version of the reservation
	// protocol where the server notifies the client about a reservation.
	ReservationProtocolVersion_RESERVATION_SERVER_NOTIFY ReservationProtocolVersion = 1
)

func (ReservationProtocolVersion) Descriptor added in v1.0.6

func (ReservationProtocolVersion) Enum added in v1.0.6

func (ReservationProtocolVersion) EnumDescriptor deprecated added in v1.0.6

func (ReservationProtocolVersion) EnumDescriptor() ([]byte, []int)

Deprecated: Use ReservationProtocolVersion.Descriptor instead.

func (ReservationProtocolVersion) Number added in v1.0.6

func (ReservationProtocolVersion) String added in v1.0.6

func (ReservationProtocolVersion) Type added in v1.0.6

type ReservationServiceClient added in v1.0.6

type ReservationServiceClient interface {
	// Deprecated: Do not use.
	// ReservationNotificationStream is a server side stream that sends
	// notifications if the server wants to open a reservation to the client.
	ReservationNotificationStream(ctx context.Context, in *ReservationNotificationRequest, opts ...grpc.CallOption) (ReservationService_ReservationNotificationStreamClient, error)
	// OpenReservation requests a new reservation UTXO from the server.
	OpenReservation(ctx context.Context, in *ServerOpenReservationRequest, opts ...grpc.CallOption) (*ServerOpenReservationResponse, error)
}

ReservationServiceClient is the client API for ReservationService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewReservationServiceClient added in v1.0.6

func NewReservationServiceClient(cc grpc.ClientConnInterface) ReservationServiceClient

type ReservationServiceServer added in v1.0.6

type ReservationServiceServer interface {
	// Deprecated: Do not use.
	// ReservationNotificationStream is a server side stream that sends
	// notifications if the server wants to open a reservation to the client.
	ReservationNotificationStream(*ReservationNotificationRequest, ReservationService_ReservationNotificationStreamServer) error
	// OpenReservation requests a new reservation UTXO from the server.
	OpenReservation(context.Context, *ServerOpenReservationRequest) (*ServerOpenReservationResponse, error)
	// contains filtered or unexported methods
}

ReservationServiceServer is the server API for ReservationService service. All implementations must embed UnimplementedReservationServiceServer for forward compatibility

type ReservationService_ReservationNotificationStreamClient added in v1.0.6

type ReservationService_ReservationNotificationStreamClient interface {
	Recv() (*ServerReservationNotification, error)
	grpc.ClientStream
}

type ReservationService_ReservationNotificationStreamServer added in v1.0.6

type ReservationService_ReservationNotificationStreamServer interface {
	Send(*ServerReservationNotification) error
	grpc.ServerStream
}

type RouteCancel

type RouteCancel struct {

	// The type of the payment that failed.
	RouteType RoutePaymentType `protobuf:"varint,1,opt,name=route_type,json=routeType,proto3,enum=looprpc.RoutePaymentType" json:"route_type,omitempty"`
	// The htlcs that the client tried to pay the server with, if any.
	Attempts []*HtlcAttempt `protobuf:"bytes,2,rep,name=attempts,proto3" json:"attempts,omitempty"`
	// The reason that the payment failed.
	Failure PaymentFailureReason `protobuf:"varint,3,opt,name=failure,proto3,enum=looprpc.PaymentFailureReason" json:"failure,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteCancel) Descriptor deprecated

func (*RouteCancel) Descriptor() ([]byte, []int)

Deprecated: Use RouteCancel.ProtoReflect.Descriptor instead.

func (*RouteCancel) GetAttempts

func (x *RouteCancel) GetAttempts() []*HtlcAttempt

func (*RouteCancel) GetFailure

func (x *RouteCancel) GetFailure() PaymentFailureReason

func (*RouteCancel) GetRouteType

func (x *RouteCancel) GetRouteType() RoutePaymentType

func (*RouteCancel) ProtoMessage

func (*RouteCancel) ProtoMessage()

func (*RouteCancel) ProtoReflect

func (x *RouteCancel) ProtoReflect() protoreflect.Message

func (*RouteCancel) Reset

func (x *RouteCancel) Reset()

func (*RouteCancel) String

func (x *RouteCancel) String() string

type RouteHint

type RouteHint struct {

	// A list of hop hints that when chained together can assist in reaching a
	// specific destination.
	HopHints []*HopHint `protobuf:"bytes,1,rep,name=hop_hints,json=hopHints,proto3" json:"hop_hints,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteHint) Descriptor deprecated

func (*RouteHint) Descriptor() ([]byte, []int)

Deprecated: Use RouteHint.ProtoReflect.Descriptor instead.

func (*RouteHint) GetHopHints

func (x *RouteHint) GetHopHints() []*HopHint

func (*RouteHint) ProtoMessage

func (*RouteHint) ProtoMessage()

func (*RouteHint) ProtoReflect

func (x *RouteHint) ProtoReflect() protoreflect.Message

func (*RouteHint) Reset

func (x *RouteHint) Reset()

func (*RouteHint) String

func (x *RouteHint) String() string

type RoutePaymentType

type RoutePaymentType int32
const (
	// No reason, used to distinguish from the default value.
	RoutePaymentType_ROUTE_UNKNOWN RoutePaymentType = 0
	// Prepay route indicates that the swap was canceled because the client
	// could not find a route to the server for the prepay.
	RoutePaymentType_PREPAY_ROUTE RoutePaymentType = 1
	// Invoice route indicates that the swap was canceled because the client
	// could not find a route to the server for the swap invoice.
	RoutePaymentType_INVOICE_ROUTE RoutePaymentType = 2
)

func (RoutePaymentType) Descriptor

func (RoutePaymentType) Enum

func (RoutePaymentType) EnumDescriptor deprecated

func (RoutePaymentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use RoutePaymentType.Descriptor instead.

func (RoutePaymentType) Number

func (RoutePaymentType) String

func (x RoutePaymentType) String() string

func (RoutePaymentType) Type

type RoutingPlugin added in v1.0.1

type RoutingPlugin int32
const (
	// Client won't use any plugins to help with payment routing.
	RoutingPlugin_NONE RoutingPlugin = 0
	// Client will try more expensive routes for off-chain payments.
	RoutingPlugin_LOW_HIGH RoutingPlugin = 1
)

func (RoutingPlugin) Descriptor added in v1.0.1

func (RoutingPlugin) Enum added in v1.0.1

func (x RoutingPlugin) Enum() *RoutingPlugin

func (RoutingPlugin) EnumDescriptor deprecated added in v1.0.1

func (RoutingPlugin) EnumDescriptor() ([]byte, []int)

Deprecated: Use RoutingPlugin.Descriptor instead.

func (RoutingPlugin) Number added in v1.0.1

func (RoutingPlugin) String added in v1.0.1

func (x RoutingPlugin) String() string

func (RoutingPlugin) Type added in v1.0.1

type ServerAddressParameters added in v1.0.9

type ServerAddressParameters struct {

	// The server key for the MuSig2 static address output.
	ServerKey []byte `protobuf:"bytes,1,opt,name=server_key,json=serverKey,proto3" json:"server_key,omitempty"`
	// The CSV expiry of the static address output.
	Expiry uint32 `protobuf:"varint,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerAddressParameters) Descriptor deprecated added in v1.0.9

func (*ServerAddressParameters) Descriptor() ([]byte, []int)

Deprecated: Use ServerAddressParameters.ProtoReflect.Descriptor instead.

func (*ServerAddressParameters) GetExpiry added in v1.0.9

func (x *ServerAddressParameters) GetExpiry() uint32

func (*ServerAddressParameters) GetServerKey added in v1.0.9

func (x *ServerAddressParameters) GetServerKey() []byte

func (*ServerAddressParameters) ProtoMessage added in v1.0.9

func (*ServerAddressParameters) ProtoMessage()

func (*ServerAddressParameters) ProtoReflect added in v1.0.9

func (x *ServerAddressParameters) ProtoReflect() protoreflect.Message

func (*ServerAddressParameters) Reset added in v1.0.9

func (x *ServerAddressParameters) Reset()

func (*ServerAddressParameters) String added in v1.0.9

func (x *ServerAddressParameters) String() string

type ServerLoopInQuoteRequest

type ServerLoopInQuoteRequest struct {

	// / The swap amount. If zero, a quote for a maximum amt swap will be given.
	Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	// The destination pubkey.
	Pubkey []byte `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	// Optional last hop to use.
	LastHop []byte `protobuf:"bytes,4,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"`
	// Optional route hints to reach the destination through private channels.
	RouteHints []*RouteHint `protobuf:"bytes,5,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
	// / The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The user agent string that identifies the software running on the user's
	// side. This can be changed in the user's client software but it _SHOULD_
	// conform to the following pattern:
	//
	//	Agent-Name/semver-version(/additional-info)
	//
	// Examples:
	//
	//	loopd/v0.10.0-beta/commit=3b635821
	//	litd/v0.2.0-alpha/commit=326d754
	UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// If this is a quote request for a static address loop in, this value
	// defines the number of static address deposits that the client wants to
	// quote for. The amount of the quote reflects the sum of all deposits. The
	// number of deposits here is taken into consideration for the total swap
	// fee.
	NumStaticAddressDeposits uint32 `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ServerLoopInQuoteRequest) Descriptor deprecated

func (*ServerLoopInQuoteRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopInQuoteRequest.ProtoReflect.Descriptor instead.

func (*ServerLoopInQuoteRequest) GetAmt

func (x *ServerLoopInQuoteRequest) GetAmt() uint64

func (*ServerLoopInQuoteRequest) GetLastHop

func (x *ServerLoopInQuoteRequest) GetLastHop() []byte

func (*ServerLoopInQuoteRequest) GetNumStaticAddressDeposits added in v1.0.9

func (x *ServerLoopInQuoteRequest) GetNumStaticAddressDeposits() uint32

func (*ServerLoopInQuoteRequest) GetProtocolVersion

func (x *ServerLoopInQuoteRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopInQuoteRequest) GetPubkey

func (x *ServerLoopInQuoteRequest) GetPubkey() []byte

func (*ServerLoopInQuoteRequest) GetRouteHints

func (x *ServerLoopInQuoteRequest) GetRouteHints() []*RouteHint

func (*ServerLoopInQuoteRequest) GetUserAgent added in v1.0.5

func (x *ServerLoopInQuoteRequest) GetUserAgent() string

func (*ServerLoopInQuoteRequest) ProtoMessage

func (*ServerLoopInQuoteRequest) ProtoMessage()

func (*ServerLoopInQuoteRequest) ProtoReflect

func (x *ServerLoopInQuoteRequest) ProtoReflect() protoreflect.Message

func (*ServerLoopInQuoteRequest) Reset

func (x *ServerLoopInQuoteRequest) Reset()

func (*ServerLoopInQuoteRequest) String

func (x *ServerLoopInQuoteRequest) String() string

type ServerLoopInQuoteResponse

type ServerLoopInQuoteResponse struct {
	SwapFee int64 `protobuf:"varint,1,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"`
	// Deprecated: Marked as deprecated in server.proto.
	SwapFeeRate int64 `protobuf:"varint,2,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"`
	// Deprecated: Marked as deprecated in server.proto.
	MinSwapAmount uint64 `protobuf:"varint,4,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	// Deprecated: Marked as deprecated in server.proto.
	MaxSwapAmount uint64 `protobuf:"varint,5,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	CltvDelta     int32  `protobuf:"varint,6,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopInQuoteResponse) Descriptor deprecated

func (*ServerLoopInQuoteResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopInQuoteResponse.ProtoReflect.Descriptor instead.

func (*ServerLoopInQuoteResponse) GetCltvDelta

func (x *ServerLoopInQuoteResponse) GetCltvDelta() int32

func (*ServerLoopInQuoteResponse) GetMaxSwapAmount deprecated

func (x *ServerLoopInQuoteResponse) GetMaxSwapAmount() uint64

Deprecated: Marked as deprecated in server.proto.

func (*ServerLoopInQuoteResponse) GetMinSwapAmount deprecated

func (x *ServerLoopInQuoteResponse) GetMinSwapAmount() uint64

Deprecated: Marked as deprecated in server.proto.

func (*ServerLoopInQuoteResponse) GetSwapFee

func (x *ServerLoopInQuoteResponse) GetSwapFee() int64

func (*ServerLoopInQuoteResponse) GetSwapFeeRate deprecated

func (x *ServerLoopInQuoteResponse) GetSwapFeeRate() int64

Deprecated: Marked as deprecated in server.proto.

func (*ServerLoopInQuoteResponse) ProtoMessage

func (*ServerLoopInQuoteResponse) ProtoMessage()

func (*ServerLoopInQuoteResponse) ProtoReflect

func (*ServerLoopInQuoteResponse) Reset

func (x *ServerLoopInQuoteResponse) Reset()

func (*ServerLoopInQuoteResponse) String

func (x *ServerLoopInQuoteResponse) String() string

type ServerLoopInRequest

type ServerLoopInRequest struct {
	SenderKey            []byte `protobuf:"bytes,1,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"`
	SenderInternalPubkey []byte `protobuf:"bytes,9,opt,name=sender_internal_pubkey,json=senderInternalPubkey,proto3" json:"sender_internal_pubkey,omitempty"`
	SwapHash             []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	Amt                  uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"`
	SwapInvoice          string `protobuf:"bytes,4,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"`
	LastHop              []byte `protobuf:"bytes,5,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"`
	// / The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// An invoice that can be used for the purpose of probing.
	ProbeInvoice string `protobuf:"bytes,7,opt,name=probe_invoice,json=probeInvoice,proto3" json:"probe_invoice,omitempty"`
	// The user agent string that identifies the software running on the user's
	// side. This can be changed in the user's client software but it _SHOULD_
	// conform to the following pattern:
	//
	//	Agent-Name/semver-version(/additional-info)
	//
	// Examples:
	//
	//	loopd/v0.10.0-beta/commit=3b635821
	//	litd/v0.2.0-alpha/commit=326d754
	UserAgent string `protobuf:"bytes,8,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopInRequest) Descriptor deprecated

func (*ServerLoopInRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopInRequest.ProtoReflect.Descriptor instead.

func (*ServerLoopInRequest) GetAmt

func (x *ServerLoopInRequest) GetAmt() uint64

func (*ServerLoopInRequest) GetLastHop

func (x *ServerLoopInRequest) GetLastHop() []byte

func (*ServerLoopInRequest) GetProbeInvoice

func (x *ServerLoopInRequest) GetProbeInvoice() string

func (*ServerLoopInRequest) GetProtocolVersion

func (x *ServerLoopInRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopInRequest) GetSenderInternalPubkey added in v1.0.4

func (x *ServerLoopInRequest) GetSenderInternalPubkey() []byte

func (*ServerLoopInRequest) GetSenderKey

func (x *ServerLoopInRequest) GetSenderKey() []byte

func (*ServerLoopInRequest) GetSwapHash

func (x *ServerLoopInRequest) GetSwapHash() []byte

func (*ServerLoopInRequest) GetSwapInvoice

func (x *ServerLoopInRequest) GetSwapInvoice() string

func (*ServerLoopInRequest) GetUserAgent

func (x *ServerLoopInRequest) GetUserAgent() string

func (*ServerLoopInRequest) ProtoMessage

func (*ServerLoopInRequest) ProtoMessage()

func (*ServerLoopInRequest) ProtoReflect

func (x *ServerLoopInRequest) ProtoReflect() protoreflect.Message

func (*ServerLoopInRequest) Reset

func (x *ServerLoopInRequest) Reset()

func (*ServerLoopInRequest) String

func (x *ServerLoopInRequest) String() string

type ServerLoopInResponse

type ServerLoopInResponse struct {
	ReceiverKey            []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"`
	ReceiverInternalPubkey []byte `` /* 129-byte string literal not displayed */
	Expiry                 int32  `protobuf:"varint,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// A human-readable message from the loop server.
	ServerMessage string `protobuf:"bytes,3,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopInResponse) Descriptor deprecated

func (*ServerLoopInResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopInResponse.ProtoReflect.Descriptor instead.

func (*ServerLoopInResponse) GetExpiry

func (x *ServerLoopInResponse) GetExpiry() int32

func (*ServerLoopInResponse) GetReceiverInternalPubkey added in v1.0.4

func (x *ServerLoopInResponse) GetReceiverInternalPubkey() []byte

func (*ServerLoopInResponse) GetReceiverKey

func (x *ServerLoopInResponse) GetReceiverKey() []byte

func (*ServerLoopInResponse) GetServerMessage

func (x *ServerLoopInResponse) GetServerMessage() string

func (*ServerLoopInResponse) ProtoMessage

func (*ServerLoopInResponse) ProtoMessage()

func (*ServerLoopInResponse) ProtoReflect

func (x *ServerLoopInResponse) ProtoReflect() protoreflect.Message

func (*ServerLoopInResponse) Reset

func (x *ServerLoopInResponse) Reset()

func (*ServerLoopInResponse) String

func (x *ServerLoopInResponse) String() string

type ServerLoopInTerms

type ServerLoopInTerms struct {
	MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopInTerms) Descriptor deprecated

func (*ServerLoopInTerms) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopInTerms.ProtoReflect.Descriptor instead.

func (*ServerLoopInTerms) GetMaxSwapAmount

func (x *ServerLoopInTerms) GetMaxSwapAmount() uint64

func (*ServerLoopInTerms) GetMinSwapAmount

func (x *ServerLoopInTerms) GetMinSwapAmount() uint64

func (*ServerLoopInTerms) ProtoMessage

func (*ServerLoopInTerms) ProtoMessage()

func (*ServerLoopInTerms) ProtoReflect

func (x *ServerLoopInTerms) ProtoReflect() protoreflect.Message

func (*ServerLoopInTerms) Reset

func (x *ServerLoopInTerms) Reset()

func (*ServerLoopInTerms) String

func (x *ServerLoopInTerms) String() string

type ServerLoopInTermsRequest

type ServerLoopInTermsRequest struct {

	// / The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The user agent string that identifies the software running on the user's
	// side. This can be changed in the user's client software but it _SHOULD_
	// conform to the following pattern:
	//
	//	Agent-Name/semver-version(/additional-info)
	//
	// Examples:
	//
	//	loopd/v0.10.0-beta/commit=3b635821
	//	litd/v0.2.0-alpha/commit=326d754
	UserAgent string `protobuf:"bytes,2,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopInTermsRequest) Descriptor deprecated

func (*ServerLoopInTermsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopInTermsRequest.ProtoReflect.Descriptor instead.

func (*ServerLoopInTermsRequest) GetProtocolVersion

func (x *ServerLoopInTermsRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopInTermsRequest) GetUserAgent added in v1.0.5

func (x *ServerLoopInTermsRequest) GetUserAgent() string

func (*ServerLoopInTermsRequest) ProtoMessage

func (*ServerLoopInTermsRequest) ProtoMessage()

func (*ServerLoopInTermsRequest) ProtoReflect

func (x *ServerLoopInTermsRequest) ProtoReflect() protoreflect.Message

func (*ServerLoopInTermsRequest) Reset

func (x *ServerLoopInTermsRequest) Reset()

func (*ServerLoopInTermsRequest) String

func (x *ServerLoopInTermsRequest) String() string

type ServerLoopOutPushPreimageRequest

type ServerLoopOutPushPreimageRequest struct {

	// The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// Preimage is the preimage of the loop out swap that we wish to push to the
	// server to speed up off-chain claim once the on-chain htlc has confirmed.
	Preimage []byte `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"`
	// contains filtered or unexported fields
}

ServerLoopOutPushPreimageRequest pushes a preimage to the server. Note that this call returns with no error after the server acknowledges the preimage and does not block until the invoice is settled.

func (*ServerLoopOutPushPreimageRequest) Descriptor deprecated

func (*ServerLoopOutPushPreimageRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopOutPushPreimageRequest.ProtoReflect.Descriptor instead.

func (*ServerLoopOutPushPreimageRequest) GetPreimage

func (x *ServerLoopOutPushPreimageRequest) GetPreimage() []byte

func (*ServerLoopOutPushPreimageRequest) GetProtocolVersion

func (x *ServerLoopOutPushPreimageRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopOutPushPreimageRequest) ProtoMessage

func (*ServerLoopOutPushPreimageRequest) ProtoMessage()

func (*ServerLoopOutPushPreimageRequest) ProtoReflect

func (*ServerLoopOutPushPreimageRequest) Reset

func (*ServerLoopOutPushPreimageRequest) String

type ServerLoopOutPushPreimageResponse

type ServerLoopOutPushPreimageResponse struct {
	// contains filtered or unexported fields
}

func (*ServerLoopOutPushPreimageResponse) Descriptor deprecated

func (*ServerLoopOutPushPreimageResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopOutPushPreimageResponse.ProtoReflect.Descriptor instead.

func (*ServerLoopOutPushPreimageResponse) ProtoMessage

func (*ServerLoopOutPushPreimageResponse) ProtoMessage()

func (*ServerLoopOutPushPreimageResponse) ProtoReflect

func (*ServerLoopOutPushPreimageResponse) Reset

func (*ServerLoopOutPushPreimageResponse) String

type ServerLoopOutQuote

type ServerLoopOutQuote struct {
	SwapPaymentDest string `protobuf:"bytes,1,opt,name=swap_payment_dest,json=swapPaymentDest,proto3" json:"swap_payment_dest,omitempty"`
	// / The total estimated swap fee given the quote amt.
	SwapFee int64 `protobuf:"varint,2,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"`
	// / Deprecated, total swap fee given quote amt is calculated in swap_fee.
	//
	// Deprecated: Marked as deprecated in server.proto.
	SwapFeeRate int64  `protobuf:"varint,3,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"`
	PrepayAmt   uint64 `protobuf:"varint,4,opt,name=prepay_amt,json=prepayAmt,proto3" json:"prepay_amt,omitempty"`
	// Deprecated: Marked as deprecated in server.proto.
	MinSwapAmount uint64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	// Deprecated: Marked as deprecated in server.proto.
	MaxSwapAmount uint64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	// The server-proposed cltv delta of the on-chain htlc. Deprecated because
	// the field is already specified in the request.
	//
	// Deprecated: Marked as deprecated in server.proto.
	CltvDelta int32 `protobuf:"varint,7,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopOutQuote) Descriptor deprecated

func (*ServerLoopOutQuote) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopOutQuote.ProtoReflect.Descriptor instead.

func (*ServerLoopOutQuote) GetCltvDelta deprecated

func (x *ServerLoopOutQuote) GetCltvDelta() int32

Deprecated: Marked as deprecated in server.proto.

func (*ServerLoopOutQuote) GetMaxSwapAmount deprecated

func (x *ServerLoopOutQuote) GetMaxSwapAmount() uint64

Deprecated: Marked as deprecated in server.proto.

func (*ServerLoopOutQuote) GetMinSwapAmount deprecated

func (x *ServerLoopOutQuote) GetMinSwapAmount() uint64

Deprecated: Marked as deprecated in server.proto.

func (*ServerLoopOutQuote) GetPrepayAmt

func (x *ServerLoopOutQuote) GetPrepayAmt() uint64

func (*ServerLoopOutQuote) GetSwapFee

func (x *ServerLoopOutQuote) GetSwapFee() int64

func (*ServerLoopOutQuote) GetSwapFeeRate deprecated

func (x *ServerLoopOutQuote) GetSwapFeeRate() int64

Deprecated: Marked as deprecated in server.proto.

func (*ServerLoopOutQuote) GetSwapPaymentDest

func (x *ServerLoopOutQuote) GetSwapPaymentDest() string

func (*ServerLoopOutQuote) ProtoMessage

func (*ServerLoopOutQuote) ProtoMessage()

func (*ServerLoopOutQuote) ProtoReflect

func (x *ServerLoopOutQuote) ProtoReflect() protoreflect.Message

func (*ServerLoopOutQuote) Reset

func (x *ServerLoopOutQuote) Reset()

func (*ServerLoopOutQuote) String

func (x *ServerLoopOutQuote) String() string

type ServerLoopOutQuoteRequest

type ServerLoopOutQuoteRequest struct {

	// / The swap amount. If zero, a quote for a maximum amt swap will be given.
	Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	// / The unix time in seconds we want the on-chain swap to be published by.
	SwapPublicationDeadline int64 `` /* 133-byte string literal not displayed */
	// / The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// 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,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// The user agent string that identifies the software running on the user's
	// side. This can be changed in the user's client software but it _SHOULD_
	// conform to the following pattern:
	//
	//	Agent-Name/semver-version(/additional-info)
	//
	// Examples:
	//
	//	loopd/v0.10.0-beta/commit=3b635821
	//	litd/v0.2.0-alpha/commit=326d754
	UserAgent string `protobuf:"bytes,5,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopOutQuoteRequest) Descriptor deprecated

func (*ServerLoopOutQuoteRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopOutQuoteRequest.ProtoReflect.Descriptor instead.

func (*ServerLoopOutQuoteRequest) GetAmt

func (x *ServerLoopOutQuoteRequest) GetAmt() uint64

func (*ServerLoopOutQuoteRequest) GetExpiry

func (x *ServerLoopOutQuoteRequest) GetExpiry() int32

func (*ServerLoopOutQuoteRequest) GetProtocolVersion

func (x *ServerLoopOutQuoteRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopOutQuoteRequest) GetSwapPublicationDeadline

func (x *ServerLoopOutQuoteRequest) GetSwapPublicationDeadline() int64

func (*ServerLoopOutQuoteRequest) GetUserAgent added in v1.0.5

func (x *ServerLoopOutQuoteRequest) GetUserAgent() string

func (*ServerLoopOutQuoteRequest) ProtoMessage

func (*ServerLoopOutQuoteRequest) ProtoMessage()

func (*ServerLoopOutQuoteRequest) ProtoReflect

func (*ServerLoopOutQuoteRequest) Reset

func (x *ServerLoopOutQuoteRequest) Reset()

func (*ServerLoopOutQuoteRequest) String

func (x *ServerLoopOutQuoteRequest) String() string

type ServerLoopOutRequest

type ServerLoopOutRequest struct {
	ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"`
	SwapHash    []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	Amt         uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"`
	// / The unix time in seconds we want the on-chain swap to be published by.
	SwapPublicationDeadline int64 `` /* 133-byte string literal not displayed */
	// / The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// 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,6,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// The user agent string that identifies the software running on the user's
	// side. This can be changed in the user's client software but it _SHOULD_
	// conform to the following pattern:
	//
	//	Agent-Name/semver-version(/additional-info)
	//
	// Examples:
	//
	//	loopd/v0.10.0-beta/commit=3b635821
	//	litd/v0.2.0-alpha/commit=326d754
	UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopOutRequest) Descriptor deprecated

func (*ServerLoopOutRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopOutRequest.ProtoReflect.Descriptor instead.

func (*ServerLoopOutRequest) GetAmt

func (x *ServerLoopOutRequest) GetAmt() uint64

func (*ServerLoopOutRequest) GetExpiry

func (x *ServerLoopOutRequest) GetExpiry() int32

func (*ServerLoopOutRequest) GetProtocolVersion

func (x *ServerLoopOutRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopOutRequest) GetReceiverKey

func (x *ServerLoopOutRequest) GetReceiverKey() []byte

func (*ServerLoopOutRequest) GetSwapHash

func (x *ServerLoopOutRequest) GetSwapHash() []byte

func (*ServerLoopOutRequest) GetSwapPublicationDeadline

func (x *ServerLoopOutRequest) GetSwapPublicationDeadline() int64

func (*ServerLoopOutRequest) GetUserAgent

func (x *ServerLoopOutRequest) GetUserAgent() string

func (*ServerLoopOutRequest) ProtoMessage

func (*ServerLoopOutRequest) ProtoMessage()

func (*ServerLoopOutRequest) ProtoReflect

func (x *ServerLoopOutRequest) ProtoReflect() protoreflect.Message

func (*ServerLoopOutRequest) Reset

func (x *ServerLoopOutRequest) Reset()

func (*ServerLoopOutRequest) String

func (x *ServerLoopOutRequest) String() string

type ServerLoopOutResponse

type ServerLoopOutResponse struct {
	SwapInvoice   string `protobuf:"bytes,1,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"`
	PrepayInvoice string `protobuf:"bytes,2,opt,name=prepay_invoice,json=prepayInvoice,proto3" json:"prepay_invoice,omitempty"`
	SenderKey     []byte `protobuf:"bytes,3,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"`
	// The height at which the on-chain htlc will expire. Deprecated because the
	// field is already specified in the request.
	//
	// Deprecated: Marked as deprecated in server.proto.
	Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// A human-readable message from the loop server.
	ServerMessage string `protobuf:"bytes,5,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopOutResponse) Descriptor deprecated

func (*ServerLoopOutResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopOutResponse.ProtoReflect.Descriptor instead.

func (*ServerLoopOutResponse) GetExpiry deprecated

func (x *ServerLoopOutResponse) GetExpiry() int32

Deprecated: Marked as deprecated in server.proto.

func (*ServerLoopOutResponse) GetPrepayInvoice

func (x *ServerLoopOutResponse) GetPrepayInvoice() string

func (*ServerLoopOutResponse) GetSenderKey

func (x *ServerLoopOutResponse) GetSenderKey() []byte

func (*ServerLoopOutResponse) GetServerMessage

func (x *ServerLoopOutResponse) GetServerMessage() string

func (*ServerLoopOutResponse) GetSwapInvoice

func (x *ServerLoopOutResponse) GetSwapInvoice() string

func (*ServerLoopOutResponse) ProtoMessage

func (*ServerLoopOutResponse) ProtoMessage()

func (*ServerLoopOutResponse) ProtoReflect

func (x *ServerLoopOutResponse) ProtoReflect() protoreflect.Message

func (*ServerLoopOutResponse) Reset

func (x *ServerLoopOutResponse) Reset()

func (*ServerLoopOutResponse) String

func (x *ServerLoopOutResponse) String() string

type ServerLoopOutTerms

type ServerLoopOutTerms struct {
	MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	// The minimally accepted cltv delta of the on-chain htlc.
	MinCltvDelta int32 `protobuf:"varint,3,opt,name=min_cltv_delta,json=minCltvDelta,proto3" json:"min_cltv_delta,omitempty"`
	// The maximally accepted cltv delta of the on-chain htlc.
	MaxCltvDelta int32 `protobuf:"varint,4,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopOutTerms) Descriptor deprecated

func (*ServerLoopOutTerms) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopOutTerms.ProtoReflect.Descriptor instead.

func (*ServerLoopOutTerms) GetMaxCltvDelta

func (x *ServerLoopOutTerms) GetMaxCltvDelta() int32

func (*ServerLoopOutTerms) GetMaxSwapAmount

func (x *ServerLoopOutTerms) GetMaxSwapAmount() uint64

func (*ServerLoopOutTerms) GetMinCltvDelta

func (x *ServerLoopOutTerms) GetMinCltvDelta() int32

func (*ServerLoopOutTerms) GetMinSwapAmount

func (x *ServerLoopOutTerms) GetMinSwapAmount() uint64

func (*ServerLoopOutTerms) ProtoMessage

func (*ServerLoopOutTerms) ProtoMessage()

func (*ServerLoopOutTerms) ProtoReflect

func (x *ServerLoopOutTerms) ProtoReflect() protoreflect.Message

func (*ServerLoopOutTerms) Reset

func (x *ServerLoopOutTerms) Reset()

func (*ServerLoopOutTerms) String

func (x *ServerLoopOutTerms) String() string

type ServerLoopOutTermsRequest

type ServerLoopOutTermsRequest struct {

	// / The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The user agent string that identifies the software running on the user's
	// side. This can be changed in the user's client software but it _SHOULD_
	// conform to the following pattern:
	//
	//	Agent-Name/semver-version(/additional-info)
	//
	// Examples:
	//
	//	loopd/v0.10.0-beta/commit=3b635821
	//	litd/v0.2.0-alpha/commit=326d754
	UserAgent string `protobuf:"bytes,2,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLoopOutTermsRequest) Descriptor deprecated

func (*ServerLoopOutTermsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerLoopOutTermsRequest.ProtoReflect.Descriptor instead.

func (*ServerLoopOutTermsRequest) GetProtocolVersion

func (x *ServerLoopOutTermsRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopOutTermsRequest) GetUserAgent added in v1.0.5

func (x *ServerLoopOutTermsRequest) GetUserAgent() string

func (*ServerLoopOutTermsRequest) ProtoMessage

func (*ServerLoopOutTermsRequest) ProtoMessage()

func (*ServerLoopOutTermsRequest) ProtoReflect

func (*ServerLoopOutTermsRequest) Reset

func (x *ServerLoopOutTermsRequest) Reset()

func (*ServerLoopOutTermsRequest) String

func (x *ServerLoopOutTermsRequest) String() string

type ServerNewAddressRequest added in v1.0.9

type ServerNewAddressRequest struct {

	// The protocol version that the client adheres to.
	ProtocolVersion StaticAddressProtocolVersion `` /* 149-byte string literal not displayed */
	// The client key for the MuSig2 static address output.
	ClientKey []byte `protobuf:"bytes,2,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerNewAddressRequest) Descriptor deprecated added in v1.0.9

func (*ServerNewAddressRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerNewAddressRequest.ProtoReflect.Descriptor instead.

func (*ServerNewAddressRequest) GetClientKey added in v1.0.9

func (x *ServerNewAddressRequest) GetClientKey() []byte

func (*ServerNewAddressRequest) GetProtocolVersion added in v1.0.9

func (x *ServerNewAddressRequest) GetProtocolVersion() StaticAddressProtocolVersion

func (*ServerNewAddressRequest) ProtoMessage added in v1.0.9

func (*ServerNewAddressRequest) ProtoMessage()

func (*ServerNewAddressRequest) ProtoReflect added in v1.0.9

func (x *ServerNewAddressRequest) ProtoReflect() protoreflect.Message

func (*ServerNewAddressRequest) Reset added in v1.0.9

func (x *ServerNewAddressRequest) Reset()

func (*ServerNewAddressRequest) String added in v1.0.9

func (x *ServerNewAddressRequest) String() string

type ServerNewAddressResponse added in v1.0.9

type ServerNewAddressResponse struct {
	Params *ServerAddressParameters `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerNewAddressResponse) Descriptor deprecated added in v1.0.9

func (*ServerNewAddressResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServerNewAddressResponse.ProtoReflect.Descriptor instead.

func (*ServerNewAddressResponse) GetParams added in v1.0.9

func (*ServerNewAddressResponse) ProtoMessage added in v1.0.9

func (*ServerNewAddressResponse) ProtoMessage()

func (*ServerNewAddressResponse) ProtoReflect added in v1.0.9

func (x *ServerNewAddressResponse) ProtoReflect() protoreflect.Message

func (*ServerNewAddressResponse) Reset added in v1.0.9

func (x *ServerNewAddressResponse) Reset()

func (*ServerNewAddressResponse) String added in v1.0.9

func (x *ServerNewAddressResponse) String() string

type ServerOpenReservationRequest added in v1.0.6

type ServerOpenReservationRequest struct {

	// reservation_id is the id of the reservation.
	ReservationId []byte `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"`
	// client_key is the public key of the client.
	ClientKey []byte `protobuf:"bytes,2,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
	// contains filtered or unexported fields
}

ServerOpenReservationRequest is a request sent from the client to the server to confirm a reservation opening.

func (*ServerOpenReservationRequest) Descriptor deprecated added in v1.0.6

func (*ServerOpenReservationRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerOpenReservationRequest.ProtoReflect.Descriptor instead.

func (*ServerOpenReservationRequest) GetClientKey added in v1.0.6

func (x *ServerOpenReservationRequest) GetClientKey() []byte

func (*ServerOpenReservationRequest) GetReservationId added in v1.0.6

func (x *ServerOpenReservationRequest) GetReservationId() []byte

func (*ServerOpenReservationRequest) ProtoMessage added in v1.0.6

func (*ServerOpenReservationRequest) ProtoMessage()

func (*ServerOpenReservationRequest) ProtoReflect added in v1.0.6

func (*ServerOpenReservationRequest) Reset added in v1.0.6

func (x *ServerOpenReservationRequest) Reset()

func (*ServerOpenReservationRequest) String added in v1.0.6

type ServerOpenReservationResponse added in v1.0.6

type ServerOpenReservationResponse struct {
	// contains filtered or unexported fields
}

ServerOpenReservationResponse is a response sent from the server to the client to confirm a reservation opening.

func (*ServerOpenReservationResponse) Descriptor deprecated added in v1.0.6

func (*ServerOpenReservationResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServerOpenReservationResponse.ProtoReflect.Descriptor instead.

func (*ServerOpenReservationResponse) ProtoMessage added in v1.0.6

func (*ServerOpenReservationResponse) ProtoMessage()

func (*ServerOpenReservationResponse) ProtoReflect added in v1.0.6

func (*ServerOpenReservationResponse) Reset added in v1.0.6

func (x *ServerOpenReservationResponse) Reset()

func (*ServerOpenReservationResponse) String added in v1.0.6

type ServerProbeRequest

type ServerProbeRequest struct {

	// The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The probe amount.
	Amt uint64 `protobuf:"varint,2,opt,name=amt,proto3" json:"amt,omitempty"`
	// The target node for the probe.
	Target []byte `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	// Optional last hop to use when probing the client.
	LastHop []byte `protobuf:"bytes,4,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"`
	// Optional route hints to reach the destination through private channels.
	RouteHints []*RouteHint `protobuf:"bytes,5,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerProbeRequest) Descriptor deprecated

func (*ServerProbeRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerProbeRequest.ProtoReflect.Descriptor instead.

func (*ServerProbeRequest) GetAmt

func (x *ServerProbeRequest) GetAmt() uint64

func (*ServerProbeRequest) GetLastHop

func (x *ServerProbeRequest) GetLastHop() []byte

func (*ServerProbeRequest) GetProtocolVersion

func (x *ServerProbeRequest) GetProtocolVersion() ProtocolVersion

func (*ServerProbeRequest) GetRouteHints

func (x *ServerProbeRequest) GetRouteHints() []*RouteHint

func (*ServerProbeRequest) GetTarget

func (x *ServerProbeRequest) GetTarget() []byte

func (*ServerProbeRequest) ProtoMessage

func (*ServerProbeRequest) ProtoMessage()

func (*ServerProbeRequest) ProtoReflect

func (x *ServerProbeRequest) ProtoReflect() protoreflect.Message

func (*ServerProbeRequest) Reset

func (x *ServerProbeRequest) Reset()

func (*ServerProbeRequest) String

func (x *ServerProbeRequest) String() string

type ServerProbeResponse

type ServerProbeResponse struct {
	// contains filtered or unexported fields
}

func (*ServerProbeResponse) Descriptor deprecated

func (*ServerProbeResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServerProbeResponse.ProtoReflect.Descriptor instead.

func (*ServerProbeResponse) ProtoMessage

func (*ServerProbeResponse) ProtoMessage()

func (*ServerProbeResponse) ProtoReflect

func (x *ServerProbeResponse) ProtoReflect() protoreflect.Message

func (*ServerProbeResponse) Reset

func (x *ServerProbeResponse) Reset()

func (*ServerProbeResponse) String

func (x *ServerProbeResponse) String() string

type ServerPushKeyReq added in v1.0.4

type ServerPushKeyReq struct {

	// The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The swap hash.
	SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	// The client’s private key used in the HTLC’s aggregated internal key.
	InternalPrivkey []byte `protobuf:"bytes,3,opt,name=internal_privkey,json=internalPrivkey,proto3" json:"internal_privkey,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerPushKeyReq) Descriptor deprecated added in v1.0.4

func (*ServerPushKeyReq) Descriptor() ([]byte, []int)

Deprecated: Use ServerPushKeyReq.ProtoReflect.Descriptor instead.

func (*ServerPushKeyReq) GetInternalPrivkey added in v1.0.4

func (x *ServerPushKeyReq) GetInternalPrivkey() []byte

func (*ServerPushKeyReq) GetProtocolVersion added in v1.0.4

func (x *ServerPushKeyReq) GetProtocolVersion() ProtocolVersion

func (*ServerPushKeyReq) GetSwapHash added in v1.0.4

func (x *ServerPushKeyReq) GetSwapHash() []byte

func (*ServerPushKeyReq) ProtoMessage added in v1.0.4

func (*ServerPushKeyReq) ProtoMessage()

func (*ServerPushKeyReq) ProtoReflect added in v1.0.4

func (x *ServerPushKeyReq) ProtoReflect() protoreflect.Message

func (*ServerPushKeyReq) Reset added in v1.0.4

func (x *ServerPushKeyReq) Reset()

func (*ServerPushKeyReq) String added in v1.0.4

func (x *ServerPushKeyReq) String() string

type ServerPushKeyRes added in v1.0.4

type ServerPushKeyRes struct {
	// contains filtered or unexported fields
}

func (*ServerPushKeyRes) Descriptor deprecated added in v1.0.4

func (*ServerPushKeyRes) Descriptor() ([]byte, []int)

Deprecated: Use ServerPushKeyRes.ProtoReflect.Descriptor instead.

func (*ServerPushKeyRes) ProtoMessage added in v1.0.4

func (*ServerPushKeyRes) ProtoMessage()

func (*ServerPushKeyRes) ProtoReflect added in v1.0.4

func (x *ServerPushKeyRes) ProtoReflect() protoreflect.Message

func (*ServerPushKeyRes) Reset added in v1.0.4

func (x *ServerPushKeyRes) Reset()

func (*ServerPushKeyRes) String added in v1.0.4

func (x *ServerPushKeyRes) String() string

type ServerReservationNotification added in v1.0.6

type ServerReservationNotification struct {

	// reservation_id is the id of the reservation.
	ReservationId []byte `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"`
	// value is the value of the reservation in satoshis.
	Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// server_key is the public key of the server.
	ServerKey []byte `protobuf:"bytes,3,opt,name=server_key,json=serverKey,proto3" json:"server_key,omitempty"`
	// expiry is the absolute expiry of the reservation.
	Expiry uint32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// protocol_version is the version of the reservation protocol.
	ProtocolVersion ReservationProtocolVersion `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

ServerReservationNotification is a notification sent from the server to the client if the server wants to open a reservation.

func (*ServerReservationNotification) Descriptor deprecated added in v1.0.6

func (*ServerReservationNotification) Descriptor() ([]byte, []int)

Deprecated: Use ServerReservationNotification.ProtoReflect.Descriptor instead.

func (*ServerReservationNotification) GetExpiry added in v1.0.6

func (x *ServerReservationNotification) GetExpiry() uint32

func (*ServerReservationNotification) GetProtocolVersion added in v1.0.6

func (*ServerReservationNotification) GetReservationId added in v1.0.6

func (x *ServerReservationNotification) GetReservationId() []byte

func (*ServerReservationNotification) GetServerKey added in v1.0.6

func (x *ServerReservationNotification) GetServerKey() []byte

func (*ServerReservationNotification) GetValue added in v1.0.6

func (x *ServerReservationNotification) GetValue() uint64

func (*ServerReservationNotification) ProtoMessage added in v1.0.6

func (*ServerReservationNotification) ProtoMessage()

func (*ServerReservationNotification) ProtoReflect added in v1.0.6

func (*ServerReservationNotification) Reset added in v1.0.6

func (x *ServerReservationNotification) Reset()

func (*ServerReservationNotification) String added in v1.0.6

type ServerSwapState

type ServerSwapState int32

ServerSwapState is an enum which represents all the states a swap may have from the server's perspective.

const (
	// The server has created the swap.
	ServerSwapState_SERVER_INITIATED ServerSwapState = 0
	// The server has published the loop out on chain htlc.
	ServerSwapState_SERVER_HTLC_PUBLISHED ServerSwapState = 1
	// The swap completed successfully.
	ServerSwapState_SERVER_SUCCESS ServerSwapState = 2
	// The swap failed for a reason that is unknown to the server, this is only
	// set for older swaps.
	ServerSwapState_SERVER_FAILED_UNKNOWN ServerSwapState = 3
	// No htlc was confirmed in time for the loop in swap to complete.
	ServerSwapState_SERVER_FAILED_NO_HTLC ServerSwapState = 4
	// A loop in htlc confirmed on chain, but it did not have the correct value.
	ServerSwapState_SERVER_FAILED_INVALID_HTLC_AMOUNT ServerSwapState = 5
	// We did not succeed in completing the loop in off chain payment before the
	// timeout.
	ServerSwapState_SERVER_FAILED_OFF_CHAIN_TIMEOUT ServerSwapState = 6
	// The on chain timeout was claimed.
	ServerSwapState_SERVER_FAILED_TIMEOUT ServerSwapState = 7
	// The server could not publish the loop out on chain htlc before the deadline
	// provided.
	ServerSwapState_SERVER_FAILED_SWAP_DEADLINE ServerSwapState = 8
	// The server could not publish the loop out on chain htlc.
	ServerSwapState_SERVER_FAILED_HTLC_PUBLICATION ServerSwapState = 9
	// The server has published the loop out on chain timeout tx.
	ServerSwapState_SERVER_TIMEOUT_PUBLISHED ServerSwapState = 10
	// The swap has failed for unknown reasons, it will not be completed.
	ServerSwapState_SERVER_UNEXPECTED_FAILURE ServerSwapState = 11
	// The swap htlc has confirmed on chain.
	ServerSwapState_SERVER_HTLC_CONFIRMED ServerSwapState = 12
	// The client canceled the swap because they could not route the prepay.
	ServerSwapState_SERVER_CLIENT_PREPAY_CANCEL ServerSwapState = 13
	// The client canceled the swap because they could not route the swap
	// payment.
	ServerSwapState_SERVER_CLIENT_INVOICE_CANCEL ServerSwapState = 14
	// A loop in swap was rejected because it contained multiple outputs for a
	// single swap.
	ServerSwapState_SERVER_FAILED_MULTIPLE_SWAP_SCRIPTS ServerSwapState = 15
	// The swap failed during creation.
	ServerSwapState_SERVER_FAILED_INITIALIZATION ServerSwapState = 16
)

func (ServerSwapState) Descriptor

func (ServerSwapState) Enum

func (x ServerSwapState) Enum() *ServerSwapState

func (ServerSwapState) EnumDescriptor deprecated

func (ServerSwapState) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServerSwapState.Descriptor instead.

func (ServerSwapState) Number

func (ServerSwapState) String

func (x ServerSwapState) String() string

func (ServerSwapState) Type

type ServerWithdrawRequest added in v1.0.9

type ServerWithdrawRequest struct {

	// The deposit outpoints the client wishes to close.
	Outpoints []*PrevoutInfo `protobuf:"bytes,1,rep,name=outpoints,proto3" json:"outpoints,omitempty"`
	// The nonces that the client used to generate the coop close tx 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 static address deposits
	// 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.
	TxFeeRate uint64 `protobuf:"varint,4,opt,name=tx_fee_rate,json=txFeeRate,proto3" json:"tx_fee_rate,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerWithdrawRequest) Descriptor deprecated added in v1.0.9

func (*ServerWithdrawRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerWithdrawRequest.ProtoReflect.Descriptor instead.

func (*ServerWithdrawRequest) GetClientNonces added in v1.0.9

func (x *ServerWithdrawRequest) GetClientNonces() [][]byte

func (*ServerWithdrawRequest) GetClientSweepAddr added in v1.0.9

func (x *ServerWithdrawRequest) GetClientSweepAddr() string

func (*ServerWithdrawRequest) GetOutpoints added in v1.0.9

func (x *ServerWithdrawRequest) GetOutpoints() []*PrevoutInfo

func (*ServerWithdrawRequest) GetTxFeeRate added in v1.0.9

func (x *ServerWithdrawRequest) GetTxFeeRate() uint64

func (*ServerWithdrawRequest) ProtoMessage added in v1.0.9

func (*ServerWithdrawRequest) ProtoMessage()

func (*ServerWithdrawRequest) ProtoReflect added in v1.0.9

func (x *ServerWithdrawRequest) ProtoReflect() protoreflect.Message

func (*ServerWithdrawRequest) Reset added in v1.0.9

func (x *ServerWithdrawRequest) Reset()

func (*ServerWithdrawRequest) String added in v1.0.9

func (x *ServerWithdrawRequest) String() string

type ServerWithdrawResponse added in v1.0.9

type ServerWithdrawResponse struct {

	// 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"`
	// contains filtered or unexported fields
}

func (*ServerWithdrawResponse) Descriptor deprecated added in v1.0.9

func (*ServerWithdrawResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServerWithdrawResponse.ProtoReflect.Descriptor instead.

func (*ServerWithdrawResponse) GetMusig2SweepSigs added in v1.0.9

func (x *ServerWithdrawResponse) GetMusig2SweepSigs() [][]byte

func (*ServerWithdrawResponse) GetServerNonces added in v1.0.9

func (x *ServerWithdrawResponse) GetServerNonces() [][]byte

func (*ServerWithdrawResponse) ProtoMessage added in v1.0.9

func (*ServerWithdrawResponse) ProtoMessage()

func (*ServerWithdrawResponse) ProtoReflect added in v1.0.9

func (x *ServerWithdrawResponse) ProtoReflect() protoreflect.Message

func (*ServerWithdrawResponse) Reset added in v1.0.9

func (x *ServerWithdrawResponse) Reset()

func (*ServerWithdrawResponse) String added in v1.0.9

func (x *ServerWithdrawResponse) String() string

type StaticAddressProtocolVersion added in v1.0.7

type StaticAddressProtocolVersion int32

StaticAddressProtocolVersion represents the static address protocol version the client adheres to.

const (
	// V0 is the initially released static address protocol version.
	StaticAddressProtocolVersion_V0 StaticAddressProtocolVersion = 0
)

func (StaticAddressProtocolVersion) Descriptor added in v1.0.7

func (StaticAddressProtocolVersion) Enum added in v1.0.7

func (StaticAddressProtocolVersion) EnumDescriptor deprecated added in v1.0.7

func (StaticAddressProtocolVersion) EnumDescriptor() ([]byte, []int)

Deprecated: Use StaticAddressProtocolVersion.Descriptor instead.

func (StaticAddressProtocolVersion) Number added in v1.0.7

func (StaticAddressProtocolVersion) String added in v1.0.7

func (StaticAddressProtocolVersion) Type added in v1.0.7

type StaticAddressServerClient added in v1.0.9

type StaticAddressServerClient interface {
	// ServerNewAddress generates a new static address for the client to use.
	// The server will generate the address and return the server key and the
	// address's CSV expiry.
	ServerNewAddress(ctx context.Context, in *ServerNewAddressRequest, opts ...grpc.CallOption) (*ServerNewAddressResponse, error)
	// ServerWithdrawDeposits allows to cooperatively sweep deposits that
	// haven't timed out yet to the client's wallet. The server will generate
	// the partial sigs for the client's selected deposits.
	ServerWithdrawDeposits(ctx context.Context, in *ServerWithdrawRequest, opts ...grpc.CallOption) (*ServerWithdrawResponse, error)
}

StaticAddressServerClient is the client API for StaticAddressServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewStaticAddressServerClient added in v1.0.9

func NewStaticAddressServerClient(cc grpc.ClientConnInterface) StaticAddressServerClient

type StaticAddressServerServer added in v1.0.9

type StaticAddressServerServer interface {
	// ServerNewAddress generates a new static address for the client to use.
	// The server will generate the address and return the server key and the
	// address's CSV expiry.
	ServerNewAddress(context.Context, *ServerNewAddressRequest) (*ServerNewAddressResponse, error)
	// ServerWithdrawDeposits allows to cooperatively sweep deposits that
	// haven't timed out yet to the client's wallet. The server will generate
	// the partial sigs for the client's selected deposits.
	ServerWithdrawDeposits(context.Context, *ServerWithdrawRequest) (*ServerWithdrawResponse, error)
	// contains filtered or unexported methods
}

StaticAddressServerServer is the server API for StaticAddressServer service. All implementations must embed UnimplementedStaticAddressServerServer for forward compatibility

type SubscribeLoopInUpdatesResponse

type SubscribeLoopInUpdatesResponse struct {

	// The unix timestamp in nanoseconds when the swap was updated.
	TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
	// The swap's current state.
	State ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeLoopInUpdatesResponse) Descriptor deprecated

func (*SubscribeLoopInUpdatesResponse) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeLoopInUpdatesResponse.ProtoReflect.Descriptor instead.

func (*SubscribeLoopInUpdatesResponse) GetState

func (*SubscribeLoopInUpdatesResponse) GetTimestampNs

func (x *SubscribeLoopInUpdatesResponse) GetTimestampNs() int64

func (*SubscribeLoopInUpdatesResponse) ProtoMessage

func (*SubscribeLoopInUpdatesResponse) ProtoMessage()

func (*SubscribeLoopInUpdatesResponse) ProtoReflect

func (*SubscribeLoopInUpdatesResponse) Reset

func (x *SubscribeLoopInUpdatesResponse) Reset()

func (*SubscribeLoopInUpdatesResponse) String

type SubscribeLoopOutUpdatesResponse

type SubscribeLoopOutUpdatesResponse struct {

	// The unix timestamp in nanoseconds when the swap was updated.
	TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
	// The swap's current state.
	State ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeLoopOutUpdatesResponse) Descriptor deprecated

func (*SubscribeLoopOutUpdatesResponse) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeLoopOutUpdatesResponse.ProtoReflect.Descriptor instead.

func (*SubscribeLoopOutUpdatesResponse) GetState

func (*SubscribeLoopOutUpdatesResponse) GetTimestampNs

func (x *SubscribeLoopOutUpdatesResponse) GetTimestampNs() int64

func (*SubscribeLoopOutUpdatesResponse) ProtoMessage

func (*SubscribeLoopOutUpdatesResponse) ProtoMessage()

func (*SubscribeLoopOutUpdatesResponse) ProtoReflect

func (*SubscribeLoopOutUpdatesResponse) Reset

func (*SubscribeLoopOutUpdatesResponse) String

type SubscribeNotificationsRequest added in v1.0.10

type SubscribeNotificationsRequest struct {
	// contains filtered or unexported fields
}

SubscribeNotificationsRequest is a request to subscribe to notifications.

func (*SubscribeNotificationsRequest) Descriptor deprecated added in v1.0.10

func (*SubscribeNotificationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeNotificationsRequest.ProtoReflect.Descriptor instead.

func (*SubscribeNotificationsRequest) ProtoMessage added in v1.0.10

func (*SubscribeNotificationsRequest) ProtoMessage()

func (*SubscribeNotificationsRequest) ProtoReflect added in v1.0.10

func (*SubscribeNotificationsRequest) Reset added in v1.0.10

func (x *SubscribeNotificationsRequest) Reset()

func (*SubscribeNotificationsRequest) String added in v1.0.10

type SubscribeNotificationsResponse added in v1.0.10

type SubscribeNotificationsResponse struct {

	// Types that are assignable to Notification:
	//
	//	*SubscribeNotificationsResponse_ReservationNotification
	Notification isSubscribeNotificationsResponse_Notification `protobuf_oneof:"notification"`
	// contains filtered or unexported fields
}

SubscribeNotificationsResponse is a response to a SubscribeNotificationsRequest.

func (*SubscribeNotificationsResponse) Descriptor deprecated added in v1.0.10

func (*SubscribeNotificationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeNotificationsResponse.ProtoReflect.Descriptor instead.

func (*SubscribeNotificationsResponse) GetNotification added in v1.0.10

func (m *SubscribeNotificationsResponse) GetNotification() isSubscribeNotificationsResponse_Notification

func (*SubscribeNotificationsResponse) GetReservationNotification added in v1.0.10

func (x *SubscribeNotificationsResponse) GetReservationNotification() *ServerReservationNotification

func (*SubscribeNotificationsResponse) ProtoMessage added in v1.0.10

func (*SubscribeNotificationsResponse) ProtoMessage()

func (*SubscribeNotificationsResponse) ProtoReflect added in v1.0.10

func (*SubscribeNotificationsResponse) Reset added in v1.0.10

func (x *SubscribeNotificationsResponse) Reset()

func (*SubscribeNotificationsResponse) String added in v1.0.10

type SubscribeNotificationsResponse_ReservationNotification added in v1.0.10

type SubscribeNotificationsResponse_ReservationNotification struct {
	ReservationNotification *ServerReservationNotification `protobuf:"bytes,1,opt,name=reservation_notification,json=reservationNotification,proto3,oneof"`
}

type SubscribeUpdatesRequest

type SubscribeUpdatesRequest struct {

	// The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// Swap hash is the hash of the swap to subscribe to updates for.
	SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeUpdatesRequest) Descriptor deprecated

func (*SubscribeUpdatesRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeUpdatesRequest.ProtoReflect.Descriptor instead.

func (*SubscribeUpdatesRequest) GetProtocolVersion

func (x *SubscribeUpdatesRequest) GetProtocolVersion() ProtocolVersion

func (*SubscribeUpdatesRequest) GetSwapHash

func (x *SubscribeUpdatesRequest) GetSwapHash() []byte

func (*SubscribeUpdatesRequest) ProtoMessage

func (*SubscribeUpdatesRequest) ProtoMessage()

func (*SubscribeUpdatesRequest) ProtoReflect

func (x *SubscribeUpdatesRequest) ProtoReflect() protoreflect.Message

func (*SubscribeUpdatesRequest) Reset

func (x *SubscribeUpdatesRequest) Reset()

func (*SubscribeUpdatesRequest) String

func (x *SubscribeUpdatesRequest) String() string

type SwapServerClient

type SwapServerClient interface {
	LoopOutTerms(ctx context.Context, in *ServerLoopOutTermsRequest, opts ...grpc.CallOption) (*ServerLoopOutTerms, error)
	NewLoopOutSwap(ctx context.Context, in *ServerLoopOutRequest, opts ...grpc.CallOption) (*ServerLoopOutResponse, error)
	LoopOutPushPreimage(ctx context.Context, in *ServerLoopOutPushPreimageRequest, opts ...grpc.CallOption) (*ServerLoopOutPushPreimageResponse, error)
	LoopOutQuote(ctx context.Context, in *ServerLoopOutQuoteRequest, opts ...grpc.CallOption) (*ServerLoopOutQuote, error)
	LoopInTerms(ctx context.Context, in *ServerLoopInTermsRequest, opts ...grpc.CallOption) (*ServerLoopInTerms, error)
	NewLoopInSwap(ctx context.Context, in *ServerLoopInRequest, opts ...grpc.CallOption) (*ServerLoopInResponse, error)
	LoopInQuote(ctx context.Context, in *ServerLoopInQuoteRequest, opts ...grpc.CallOption) (*ServerLoopInQuoteResponse, error)
	SubscribeLoopOutUpdates(ctx context.Context, in *SubscribeUpdatesRequest, opts ...grpc.CallOption) (SwapServer_SubscribeLoopOutUpdatesClient, error)
	SubscribeLoopInUpdates(ctx context.Context, in *SubscribeUpdatesRequest, opts ...grpc.CallOption) (SwapServer_SubscribeLoopInUpdatesClient, error)
	CancelLoopOutSwap(ctx context.Context, in *CancelLoopOutSwapRequest, opts ...grpc.CallOption) (*CancelLoopOutSwapResponse, error)
	Probe(ctx context.Context, in *ServerProbeRequest, opts ...grpc.CallOption) (*ServerProbeResponse, error)
	RecommendRoutingPlugin(ctx context.Context, in *RecommendRoutingPluginReq, opts ...grpc.CallOption) (*RecommendRoutingPluginRes, error)
	ReportRoutingResult(ctx context.Context, in *ReportRoutingResultReq, opts ...grpc.CallOption) (*ReportRoutingResultRes, error)
	MuSig2SignSweep(ctx context.Context, in *MuSig2SignSweepReq, opts ...grpc.CallOption) (*MuSig2SignSweepRes, error)
	PushKey(ctx context.Context, in *ServerPushKeyReq, opts ...grpc.CallOption) (*ServerPushKeyRes, error)
	// FetchL402 is a simple non-l402-allowlisted request that is required
	// in order to force the creation of an l402.
	FetchL402(ctx context.Context, in *FetchL402Request, opts ...grpc.CallOption) (*FetchL402Response, error)
	SubscribeNotifications(ctx context.Context, in *SubscribeNotificationsRequest, opts ...grpc.CallOption) (SwapServer_SubscribeNotificationsClient, error)
}

SwapServerClient is the client API for SwapServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSwapServerClient

func NewSwapServerClient(cc grpc.ClientConnInterface) SwapServerClient

type SwapServerServer

type SwapServerServer interface {
	LoopOutTerms(context.Context, *ServerLoopOutTermsRequest) (*ServerLoopOutTerms, error)
	NewLoopOutSwap(context.Context, *ServerLoopOutRequest) (*ServerLoopOutResponse, error)
	LoopOutPushPreimage(context.Context, *ServerLoopOutPushPreimageRequest) (*ServerLoopOutPushPreimageResponse, error)
	LoopOutQuote(context.Context, *ServerLoopOutQuoteRequest) (*ServerLoopOutQuote, error)
	LoopInTerms(context.Context, *ServerLoopInTermsRequest) (*ServerLoopInTerms, error)
	NewLoopInSwap(context.Context, *ServerLoopInRequest) (*ServerLoopInResponse, error)
	LoopInQuote(context.Context, *ServerLoopInQuoteRequest) (*ServerLoopInQuoteResponse, error)
	SubscribeLoopOutUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopOutUpdatesServer) error
	SubscribeLoopInUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopInUpdatesServer) error
	CancelLoopOutSwap(context.Context, *CancelLoopOutSwapRequest) (*CancelLoopOutSwapResponse, error)
	Probe(context.Context, *ServerProbeRequest) (*ServerProbeResponse, error)
	RecommendRoutingPlugin(context.Context, *RecommendRoutingPluginReq) (*RecommendRoutingPluginRes, error)
	ReportRoutingResult(context.Context, *ReportRoutingResultReq) (*ReportRoutingResultRes, error)
	MuSig2SignSweep(context.Context, *MuSig2SignSweepReq) (*MuSig2SignSweepRes, error)
	PushKey(context.Context, *ServerPushKeyReq) (*ServerPushKeyRes, error)
	// FetchL402 is a simple non-l402-allowlisted request that is required
	// in order to force the creation of an l402.
	FetchL402(context.Context, *FetchL402Request) (*FetchL402Response, error)
	SubscribeNotifications(*SubscribeNotificationsRequest, SwapServer_SubscribeNotificationsServer) error
	// contains filtered or unexported methods
}

SwapServerServer is the server API for SwapServer service. All implementations must embed UnimplementedSwapServerServer for forward compatibility

type SwapServer_SubscribeLoopInUpdatesClient

type SwapServer_SubscribeLoopInUpdatesClient interface {
	Recv() (*SubscribeLoopInUpdatesResponse, error)
	grpc.ClientStream
}

type SwapServer_SubscribeLoopInUpdatesServer

type SwapServer_SubscribeLoopInUpdatesServer interface {
	Send(*SubscribeLoopInUpdatesResponse) error
	grpc.ServerStream
}

type SwapServer_SubscribeLoopOutUpdatesClient

type SwapServer_SubscribeLoopOutUpdatesClient interface {
	Recv() (*SubscribeLoopOutUpdatesResponse, error)
	grpc.ClientStream
}

type SwapServer_SubscribeLoopOutUpdatesServer

type SwapServer_SubscribeLoopOutUpdatesServer interface {
	Send(*SubscribeLoopOutUpdatesResponse) error
	grpc.ServerStream
}

type SwapServer_SubscribeNotificationsClient added in v1.0.10

type SwapServer_SubscribeNotificationsClient interface {
	Recv() (*SubscribeNotificationsResponse, error)
	grpc.ClientStream
}

type SwapServer_SubscribeNotificationsServer added in v1.0.10

type SwapServer_SubscribeNotificationsServer interface {
	Send(*SubscribeNotificationsResponse) error
	grpc.ServerStream
}

type UnimplementedInstantSwapServerServer added in v1.0.7

type UnimplementedInstantSwapServerServer struct {
}

UnimplementedInstantSwapServerServer must be embedded to have forward compatible implementations.

func (UnimplementedInstantSwapServerServer) CancelInstantSwap added in v1.0.7

func (UnimplementedInstantSwapServerServer) GetInstantOutQuote added in v1.0.7

func (UnimplementedInstantSwapServerServer) InitHtlcSig added in v1.0.7

func (UnimplementedInstantSwapServerServer) PollPaymentAccepted added in v1.0.7

func (UnimplementedInstantSwapServerServer) PushHtlcSig added in v1.0.7

func (UnimplementedInstantSwapServerServer) PushPreimage added in v1.0.7

func (UnimplementedInstantSwapServerServer) RequestInstantLoopOut added in v1.0.7

type UnimplementedReservationServiceServer added in v1.0.6

type UnimplementedReservationServiceServer struct {
}

UnimplementedReservationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedReservationServiceServer) OpenReservation added in v1.0.6

func (UnimplementedReservationServiceServer) ReservationNotificationStream added in v1.0.6

type UnimplementedStaticAddressServerServer added in v1.0.9

type UnimplementedStaticAddressServerServer struct {
}

UnimplementedStaticAddressServerServer must be embedded to have forward compatible implementations.

func (UnimplementedStaticAddressServerServer) ServerNewAddress added in v1.0.9

func (UnimplementedStaticAddressServerServer) ServerWithdrawDeposits added in v1.0.9

type UnimplementedSwapServerServer

type UnimplementedSwapServerServer struct {
}

UnimplementedSwapServerServer must be embedded to have forward compatible implementations.

func (UnimplementedSwapServerServer) CancelLoopOutSwap

func (UnimplementedSwapServerServer) FetchL402 added in v1.0.6

func (UnimplementedSwapServerServer) LoopInTerms

func (UnimplementedSwapServerServer) LoopOutQuote

func (UnimplementedSwapServerServer) LoopOutTerms

func (UnimplementedSwapServerServer) MuSig2SignSweep added in v1.0.2

func (UnimplementedSwapServerServer) NewLoopInSwap

func (UnimplementedSwapServerServer) NewLoopOutSwap

func (UnimplementedSwapServerServer) Probe

func (UnimplementedSwapServerServer) PushKey added in v1.0.4

func (UnimplementedSwapServerServer) RecommendRoutingPlugin added in v1.0.1

func (UnimplementedSwapServerServer) ReportRoutingResult added in v1.0.1

func (UnimplementedSwapServerServer) SubscribeNotifications added in v1.0.10

type UnsafeInstantSwapServerServer added in v1.0.7

type UnsafeInstantSwapServerServer interface {
	// contains filtered or unexported methods
}

UnsafeInstantSwapServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InstantSwapServerServer will result in compilation errors.

type UnsafeReservationServiceServer added in v1.0.6

type UnsafeReservationServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeReservationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReservationServiceServer will result in compilation errors.

type UnsafeStaticAddressServerServer added in v1.0.9

type UnsafeStaticAddressServerServer interface {
	// contains filtered or unexported methods
}

UnsafeStaticAddressServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StaticAddressServerServer will result in compilation errors.

type UnsafeSwapServerServer

type UnsafeSwapServerServer interface {
	// contains filtered or unexported methods
}

UnsafeSwapServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SwapServerServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL