swapserverrpc

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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",
	}
	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,
	}
)

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",
	}
	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,
	}
)

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 File_common_proto protoreflect.FileDescriptor
View Source
var File_server_proto protoreflect.FileDescriptor
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,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeLoopOutUpdates",
			Handler:       _SwapServer_SubscribeLoopOutUpdates_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeLoopInUpdates",
			Handler:       _SwapServer_SubscribeLoopInUpdates_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 RegisterSwapServerServer

func RegisterSwapServerServer(s grpc.ServiceRegistrar, srv SwapServerServer)

Types

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 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 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 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.
	ProtocolVersion_PROBE ProtocolVersion = 8
)

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 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 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. Will be used to retrieve cached probed routing
	// fee.
	Pubkey []byte `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	// The last hop to use. Will be used to retrieve cached probed routing fee.
	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 */
	// 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) GetProtocolVersion

func (x *ServerLoopInQuoteRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopInQuoteRequest) GetPubkey

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

func (*ServerLoopInQuoteRequest) GetRouteHints

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

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: Do not use.
	SwapFeeRate int64 `protobuf:"varint,2,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"`
	// Deprecated: Do not use.
	MinSwapAmount uint64 `protobuf:"varint,4,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	// Deprecated: Do not use.
	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: Do not use.

func (*ServerLoopInQuoteResponse) GetMinSwapAmount deprecated

func (x *ServerLoopInQuoteResponse) GetMinSwapAmount() uint64

Deprecated: Do not use.

func (*ServerLoopInQuoteResponse) GetSwapFee

func (x *ServerLoopInQuoteResponse) GetSwapFee() int64

func (*ServerLoopInQuoteResponse) GetSwapFeeRate deprecated

func (x *ServerLoopInQuoteResponse) GetSwapFeeRate() int64

Deprecated: Do not use.

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"`
	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 */
	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) 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"`
	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) 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 */
	// 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) 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: Do not use.
	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: Do not use.
	MinSwapAmount uint64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	// Deprecated: Do not use.
	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: Do not use.
	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: Do not use.

func (*ServerLoopOutQuote) GetMaxSwapAmount deprecated

func (x *ServerLoopOutQuote) GetMaxSwapAmount() uint64

Deprecated: Do not use.

func (*ServerLoopOutQuote) GetMinSwapAmount deprecated

func (x *ServerLoopOutQuote) GetMinSwapAmount() uint64

Deprecated: Do not use.

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: Do not use.

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"`
	// 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) 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: Do not use.
	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: Do not use.

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 */
	// 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) ProtoMessage

func (*ServerLoopOutTermsRequest) ProtoMessage()

func (*ServerLoopOutTermsRequest) ProtoReflect

func (*ServerLoopOutTermsRequest) Reset

func (x *ServerLoopOutTermsRequest) Reset()

func (*ServerLoopOutTermsRequest) String

func (x *ServerLoopOutTermsRequest) String() string

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 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
)

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 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 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

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

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 UnimplementedSwapServerServer

type UnimplementedSwapServerServer struct {
}

UnimplementedSwapServerServer must be embedded to have forward compatible implementations.

func (UnimplementedSwapServerServer) CancelLoopOutSwap

func (UnimplementedSwapServerServer) LoopInTerms

func (UnimplementedSwapServerServer) LoopOutQuote

func (UnimplementedSwapServerServer) LoopOutTerms

func (UnimplementedSwapServerServer) NewLoopInSwap

func (UnimplementedSwapServerServer) NewLoopOutSwap

func (UnimplementedSwapServerServer) Probe

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