looprpc

package
v0.14.2-beta Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 15 Imported by: 8

Documentation

Overview

Package looprpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	SwapType_name = map[int32]string{
		0: "LOOP_OUT",
		1: "LOOP_IN",
	}
	SwapType_value = map[string]int32{
		"LOOP_OUT": 0,
		"LOOP_IN":  1,
	}
)

Enum value maps for SwapType.

View Source
var (
	SwapState_name = map[int32]string{
		0: "INITIATED",
		1: "PREIMAGE_REVEALED",
		2: "HTLC_PUBLISHED",
		3: "SUCCESS",
		4: "FAILED",
		5: "INVOICE_SETTLED",
	}
	SwapState_value = map[string]int32{
		"INITIATED":         0,
		"PREIMAGE_REVEALED": 1,
		"HTLC_PUBLISHED":    2,
		"SUCCESS":           3,
		"FAILED":            4,
		"INVOICE_SETTLED":   5,
	}
)

Enum value maps for SwapState.

View Source
var (
	FailureReason_name = map[int32]string{
		0: "FAILURE_REASON_NONE",
		1: "FAILURE_REASON_OFFCHAIN",
		2: "FAILURE_REASON_TIMEOUT",
		3: "FAILURE_REASON_SWEEP_TIMEOUT",
		4: "FAILURE_REASON_INSUFFICIENT_VALUE",
		5: "FAILURE_REASON_TEMPORARY",
		6: "FAILURE_REASON_INCORRECT_AMOUNT",
	}
	FailureReason_value = map[string]int32{
		"FAILURE_REASON_NONE":               0,
		"FAILURE_REASON_OFFCHAIN":           1,
		"FAILURE_REASON_TIMEOUT":            2,
		"FAILURE_REASON_SWEEP_TIMEOUT":      3,
		"FAILURE_REASON_INSUFFICIENT_VALUE": 4,
		"FAILURE_REASON_TEMPORARY":          5,
		"FAILURE_REASON_INCORRECT_AMOUNT":   6,
	}
)

Enum value maps for FailureReason.

View Source
var (
	LiquidityRuleType_name = map[int32]string{
		0: "UNKNOWN",
		1: "THRESHOLD",
	}
	LiquidityRuleType_value = map[string]int32{
		"UNKNOWN":   0,
		"THRESHOLD": 1,
	}
)

Enum value maps for LiquidityRuleType.

View Source
var (
	AutoReason_name = map[int32]string{
		0:  "AUTO_REASON_UNKNOWN",
		1:  "AUTO_REASON_BUDGET_NOT_STARTED",
		2:  "AUTO_REASON_SWEEP_FEES",
		3:  "AUTO_REASON_BUDGET_ELAPSED",
		4:  "AUTO_REASON_IN_FLIGHT",
		5:  "AUTO_REASON_SWAP_FEE",
		6:  "AUTO_REASON_MINER_FEE",
		7:  "AUTO_REASON_PREPAY",
		8:  "AUTO_REASON_FAILURE_BACKOFF",
		9:  "AUTO_REASON_LOOP_OUT",
		10: "AUTO_REASON_LOOP_IN",
		11: "AUTO_REASON_LIQUIDITY_OK",
		12: "AUTO_REASON_BUDGET_INSUFFICIENT",
		13: "AUTO_REASON_FEE_INSUFFICIENT",
	}
	AutoReason_value = map[string]int32{
		"AUTO_REASON_UNKNOWN":             0,
		"AUTO_REASON_BUDGET_NOT_STARTED":  1,
		"AUTO_REASON_SWEEP_FEES":          2,
		"AUTO_REASON_BUDGET_ELAPSED":      3,
		"AUTO_REASON_IN_FLIGHT":           4,
		"AUTO_REASON_SWAP_FEE":            5,
		"AUTO_REASON_MINER_FEE":           6,
		"AUTO_REASON_PREPAY":              7,
		"AUTO_REASON_FAILURE_BACKOFF":     8,
		"AUTO_REASON_LOOP_OUT":            9,
		"AUTO_REASON_LOOP_IN":             10,
		"AUTO_REASON_LIQUIDITY_OK":        11,
		"AUTO_REASON_BUDGET_INSUFFICIENT": 12,
		"AUTO_REASON_FEE_INSUFFICIENT":    13,
	}
)

Enum value maps for AutoReason.

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

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_client_proto protoreflect.FileDescriptor
View Source
var File_debug_proto protoreflect.FileDescriptor
View Source
var File_server_proto protoreflect.FileDescriptor

Functions

func RegisterDebugServer

func RegisterDebugServer(s *grpc.Server, srv DebugServer)

func RegisterSwapClientHandler

func RegisterSwapClientHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSwapClientHandler registers the http handlers for service SwapClient to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSwapClientHandlerClient

func RegisterSwapClientHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SwapClientClient) error

RegisterSwapClientHandlerClient registers the http handlers for service SwapClient to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SwapClientClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SwapClientClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SwapClientClient" to call the correct interceptors.

func RegisterSwapClientHandlerFromEndpoint

func RegisterSwapClientHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSwapClientHandlerFromEndpoint is same as RegisterSwapClientHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSwapClientHandlerServer

func RegisterSwapClientHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SwapClientServer) error

RegisterSwapClientHandlerServer registers the http handlers for service SwapClient to "mux". UnaryRPC :call SwapClientServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterSwapClientServer

func RegisterSwapClientServer(s *grpc.Server, srv SwapClientServer)

func RegisterSwapServerServer

func RegisterSwapServerServer(s *grpc.Server, srv SwapServerServer)

Types

type AutoReason

type AutoReason int32
const (
	AutoReason_AUTO_REASON_UNKNOWN AutoReason = 0
	//
	//Budget not started indicates that we do not recommend any swaps because
	//the start time for our budget has not arrived yet.
	AutoReason_AUTO_REASON_BUDGET_NOT_STARTED AutoReason = 1
	//
	//Sweep fees indicates that the estimated fees to sweep swaps are too high
	//right now.
	AutoReason_AUTO_REASON_SWEEP_FEES AutoReason = 2
	//
	//Budget elapsed indicates that the autoloop budget for the period has been
	//elapsed.
	AutoReason_AUTO_REASON_BUDGET_ELAPSED AutoReason = 3
	//
	//In flight indicates that the limit on in-flight automatically dispatched
	//swaps has already been reached.
	AutoReason_AUTO_REASON_IN_FLIGHT AutoReason = 4
	//
	//Swap fee indicates that the server fee for a specific swap is too high.
	AutoReason_AUTO_REASON_SWAP_FEE AutoReason = 5
	//
	//Miner fee indicates that the miner fee for a specific swap is to high.
	AutoReason_AUTO_REASON_MINER_FEE AutoReason = 6
	//
	//Prepay indicates that the prepay fee for a specific swap is too high.
	AutoReason_AUTO_REASON_PREPAY AutoReason = 7
	//
	//Failure backoff indicates that a swap has recently failed for this target,
	//and the backoff period has not yet passed.
	AutoReason_AUTO_REASON_FAILURE_BACKOFF AutoReason = 8
	//
	//Loop out indicates that a loop out swap is currently utilizing the channel,
	//so it is not eligible.
	AutoReason_AUTO_REASON_LOOP_OUT AutoReason = 9
	//
	//Loop In indicates that a loop in swap is currently in flight for the peer,
	//so it is not eligible.
	AutoReason_AUTO_REASON_LOOP_IN AutoReason = 10
	//
	//Liquidity ok indicates that a target meets the liquidity balance expressed
	//in its rule, so no swap is needed.
	AutoReason_AUTO_REASON_LIQUIDITY_OK AutoReason = 11
	//
	//Budget insufficient indicates that we cannot perform a swap because we do
	//not have enough pending budget available. This differs from budget elapsed,
	//because we still have some budget available, but we have allocated it to
	//other swaps.
	AutoReason_AUTO_REASON_BUDGET_INSUFFICIENT AutoReason = 12
	//
	//Fee insufficient indicates that the fee estimate for a swap is higher than
	//the portion of total swap amount that we allow fees to consume.
	AutoReason_AUTO_REASON_FEE_INSUFFICIENT AutoReason = 13
)

func (AutoReason) Descriptor

func (AutoReason) Descriptor() protoreflect.EnumDescriptor

func (AutoReason) Enum

func (x AutoReason) Enum() *AutoReason

func (AutoReason) EnumDescriptor deprecated

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

Deprecated: Use AutoReason.Descriptor instead.

func (AutoReason) Number

func (x AutoReason) Number() protoreflect.EnumNumber

func (AutoReason) String

func (x AutoReason) String() string

func (AutoReason) Type

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 DebugClient

type DebugClient interface {
	//
	//ForceAutoLoop is intended for *testing purposes only* and will not work on
	//mainnet. This endpoint ticks our autoloop timer, triggering automated
	//dispatch of a swap if one is suggested.
	ForceAutoLoop(ctx context.Context, in *ForceAutoLoopRequest, opts ...grpc.CallOption) (*ForceAutoLoopResponse, error)
}

DebugClient is the client API for Debug service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDebugClient

func NewDebugClient(cc grpc.ClientConnInterface) DebugClient

type DebugServer

type DebugServer interface {
	//
	//ForceAutoLoop is intended for *testing purposes only* and will not work on
	//mainnet. This endpoint ticks our autoloop timer, triggering automated
	//dispatch of a swap if one is suggested.
	ForceAutoLoop(context.Context, *ForceAutoLoopRequest) (*ForceAutoLoopResponse, error)
}

DebugServer is the server API for Debug service.

type Disqualified

type Disqualified struct {

	//
	//The short channel ID of the channel that was excluded from our suggestions.
	ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	//
	//The public key of the peer that was excluded from our suggestions.
	Pubkey []byte `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	//
	//The reason that we excluded the channel from the our suggestions.
	Reason AutoReason `protobuf:"varint,2,opt,name=reason,proto3,enum=looprpc.AutoReason" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*Disqualified) Descriptor deprecated

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

Deprecated: Use Disqualified.ProtoReflect.Descriptor instead.

func (*Disqualified) GetChannelId

func (x *Disqualified) GetChannelId() uint64

func (*Disqualified) GetPubkey

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

func (*Disqualified) GetReason

func (x *Disqualified) GetReason() AutoReason

func (*Disqualified) ProtoMessage

func (*Disqualified) ProtoMessage()

func (*Disqualified) ProtoReflect

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

func (*Disqualified) Reset

func (x *Disqualified) Reset()

func (*Disqualified) String

func (x *Disqualified) String() string

type FailureReason

type FailureReason int32
const (
	//
	//FAILURE_REASON_NONE is set when the swap did not fail, it is either in
	//progress or succeeded.
	FailureReason_FAILURE_REASON_NONE FailureReason = 0
	//
	//FAILURE_REASON_OFFCHAIN indicates that a loop out failed because it wasn't
	//possible to find a route for one or both off chain payments that met the fee
	//and timelock limits required.
	FailureReason_FAILURE_REASON_OFFCHAIN FailureReason = 1
	//
	//FAILURE_REASON_TIMEOUT indicates that the swap failed because on chain htlc
	//did not confirm before its expiry, or it confirmed too late for us to reveal
	//our preimage and claim.
	FailureReason_FAILURE_REASON_TIMEOUT FailureReason = 2
	//
	//FAILURE_REASON_SWEEP_TIMEOUT indicates that a loop out permanently failed
	//because the on chain htlc wasn't swept before the server revoked the
	//htlc.
	FailureReason_FAILURE_REASON_SWEEP_TIMEOUT FailureReason = 3
	//
	//FAILURE_REASON_INSUFFICIENT_VALUE indicates that a loop out has failed
	//because the on chain htlc had a lower value than requested.
	FailureReason_FAILURE_REASON_INSUFFICIENT_VALUE FailureReason = 4
	//
	//FAILURE_REASON_TEMPORARY indicates that a swap cannot continue due to an
	//internal error. Manual intervention such as a restart is required.
	FailureReason_FAILURE_REASON_TEMPORARY FailureReason = 5
	//
	//FAILURE_REASON_INCORRECT_AMOUNT indicates that a loop in permanently failed
	//because the amount extended by an external loop in htlc is insufficient.
	FailureReason_FAILURE_REASON_INCORRECT_AMOUNT FailureReason = 6
)

func (FailureReason) Descriptor

func (FailureReason) Enum

func (x FailureReason) Enum() *FailureReason

func (FailureReason) EnumDescriptor deprecated

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

Deprecated: Use FailureReason.Descriptor instead.

func (FailureReason) Number

func (FailureReason) String

func (x FailureReason) String() string

func (FailureReason) Type

type ForceAutoLoopRequest

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

func (*ForceAutoLoopRequest) Descriptor deprecated

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

Deprecated: Use ForceAutoLoopRequest.ProtoReflect.Descriptor instead.

func (*ForceAutoLoopRequest) ProtoMessage

func (*ForceAutoLoopRequest) ProtoMessage()

func (*ForceAutoLoopRequest) ProtoReflect

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

func (*ForceAutoLoopRequest) Reset

func (x *ForceAutoLoopRequest) Reset()

func (*ForceAutoLoopRequest) String

func (x *ForceAutoLoopRequest) String() string

type ForceAutoLoopResponse

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

func (*ForceAutoLoopResponse) Descriptor deprecated

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

Deprecated: Use ForceAutoLoopResponse.ProtoReflect.Descriptor instead.

func (*ForceAutoLoopResponse) ProtoMessage

func (*ForceAutoLoopResponse) ProtoMessage()

func (*ForceAutoLoopResponse) ProtoReflect

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

func (*ForceAutoLoopResponse) Reset

func (x *ForceAutoLoopResponse) Reset()

func (*ForceAutoLoopResponse) String

func (x *ForceAutoLoopResponse) String() string

type GetLiquidityParamsRequest

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

func (*GetLiquidityParamsRequest) Descriptor deprecated

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

Deprecated: Use GetLiquidityParamsRequest.ProtoReflect.Descriptor instead.

func (*GetLiquidityParamsRequest) ProtoMessage

func (*GetLiquidityParamsRequest) ProtoMessage()

func (*GetLiquidityParamsRequest) ProtoReflect

func (*GetLiquidityParamsRequest) Reset

func (x *GetLiquidityParamsRequest) Reset()

func (*GetLiquidityParamsRequest) String

func (x *GetLiquidityParamsRequest) 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 InQuoteResponse

type InQuoteResponse struct {

	//
	//The fee that the swap server is charging for the swap.
	SwapFeeSat int64 `protobuf:"varint,1,opt,name=swap_fee_sat,json=swapFeeSat,proto3" json:"swap_fee_sat,omitempty"`
	//
	//An estimate of the on-chain fee that needs to be paid to publish the HTLC
	//If a miner fee of 0 is returned, it means the external_htlc flag was set for
	//a loop in and the fee estimation was skipped. If a miner fee of -1 is
	//returned, it means lnd's wallet tried to estimate the fee but was unable to
	//create a sample estimation transaction because not enough funds are
	//available. An information message should be shown to the user in this case.
	HtlcPublishFeeSat int64 `protobuf:"varint,3,opt,name=htlc_publish_fee_sat,json=htlcPublishFeeSat,proto3" json:"htlc_publish_fee_sat,omitempty"`
	//
	//On-chain cltv expiry delta
	CltvDelta int32 `protobuf:"varint,5,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"`
	//
	//The confirmation target to be used to publish the on-chain HTLC.
	ConfTarget int32 `protobuf:"varint,6,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"`
	// contains filtered or unexported fields
}

func (*InQuoteResponse) Descriptor deprecated

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

Deprecated: Use InQuoteResponse.ProtoReflect.Descriptor instead.

func (*InQuoteResponse) GetCltvDelta

func (x *InQuoteResponse) GetCltvDelta() int32

func (*InQuoteResponse) GetConfTarget

func (x *InQuoteResponse) GetConfTarget() int32

func (*InQuoteResponse) GetHtlcPublishFeeSat

func (x *InQuoteResponse) GetHtlcPublishFeeSat() int64

func (*InQuoteResponse) GetSwapFeeSat

func (x *InQuoteResponse) GetSwapFeeSat() int64

func (*InQuoteResponse) ProtoMessage

func (*InQuoteResponse) ProtoMessage()

func (*InQuoteResponse) ProtoReflect

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

func (*InQuoteResponse) Reset

func (x *InQuoteResponse) Reset()

func (*InQuoteResponse) String

func (x *InQuoteResponse) String() string

type InTermsResponse

type InTermsResponse struct {

	//
	//Minimum swap amount (sat)
	MinSwapAmount int64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	//
	//Maximum swap amount (sat)
	MaxSwapAmount int64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*InTermsResponse) Descriptor deprecated

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

Deprecated: Use InTermsResponse.ProtoReflect.Descriptor instead.

func (*InTermsResponse) GetMaxSwapAmount

func (x *InTermsResponse) GetMaxSwapAmount() int64

func (*InTermsResponse) GetMinSwapAmount

func (x *InTermsResponse) GetMinSwapAmount() int64

func (*InTermsResponse) ProtoMessage

func (*InTermsResponse) ProtoMessage()

func (*InTermsResponse) ProtoReflect

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

func (*InTermsResponse) Reset

func (x *InTermsResponse) Reset()

func (*InTermsResponse) String

func (x *InTermsResponse) String() string

type LiquidityParameters

type LiquidityParameters struct {

	//
	//A set of liquidity rules that describe the desired liquidity balance.
	Rules []*LiquidityRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	//
	//The parts per million of swap amount that is allowed to be allocated to swap
	//fees. This value is applied across swap categories and may not be set in
	//conjunction with sweep fee rate, swap fee ppm, routing fee ppm, prepay
	//routing, max prepay and max miner fee.
	FeePpm uint64 `protobuf:"varint,16,opt,name=fee_ppm,json=feePpm,proto3" json:"fee_ppm,omitempty"`
	//
	//The limit we place on our estimated sweep cost for a swap in sat/vByte. If
	//the estimated fee for our sweep transaction within the specified
	//confirmation target is above this value, we will not suggest any swaps.
	SweepFeeRateSatPerVbyte uint64 `` /* 139-byte string literal not displayed */
	//
	//The maximum fee paid to the server for facilitating the swap, expressed
	//as parts per million of the swap volume.
	MaxSwapFeePpm uint64 `protobuf:"varint,3,opt,name=max_swap_fee_ppm,json=maxSwapFeePpm,proto3" json:"max_swap_fee_ppm,omitempty"`
	//
	//The maximum fee paid to route the swap invoice off chain, expressed as
	//parts per million of the volume being routed.
	MaxRoutingFeePpm uint64 `protobuf:"varint,4,opt,name=max_routing_fee_ppm,json=maxRoutingFeePpm,proto3" json:"max_routing_fee_ppm,omitempty"`
	//
	//The maximum fee paid to route the prepay invoice off chain, expressed as
	//parts per million of the volume being routed.
	MaxPrepayRoutingFeePpm uint64 `` /* 134-byte string literal not displayed */
	//
	//The maximum no-show penalty in satoshis paid for a swap.
	MaxPrepaySat uint64 `protobuf:"varint,6,opt,name=max_prepay_sat,json=maxPrepaySat,proto3" json:"max_prepay_sat,omitempty"`
	//
	//The maximum miner fee we will pay to sweep the swap on chain. Note that we
	//will not suggest a swap if the estimate is above the sweep limit set by
	//these parameters, and we use the current fee estimate to sweep on chain so
	//this value is only a cap placed on the amount we spend on fees in the case
	//where the swap needs to be claimed on chain, but fees have suddenly spiked.
	MaxMinerFeeSat uint64 `protobuf:"varint,7,opt,name=max_miner_fee_sat,json=maxMinerFeeSat,proto3" json:"max_miner_fee_sat,omitempty"`
	//
	//The number of blocks from the on-chain HTLC's confirmation height that it
	//should be swept within.
	SweepConfTarget int32 `protobuf:"varint,8,opt,name=sweep_conf_target,json=sweepConfTarget,proto3" json:"sweep_conf_target,omitempty"`
	//
	//The amount of time we require pass since a channel was part of a failed
	//swap due to off chain payment failure until it will be considered for swap
	//suggestions again, expressed in seconds.
	FailureBackoffSec uint64 `protobuf:"varint,9,opt,name=failure_backoff_sec,json=failureBackoffSec,proto3" json:"failure_backoff_sec,omitempty"`
	//
	//Set to true to enable automatic dispatch of swaps. All swaps will be limited
	//to the fee categories set by these parameters, and total expenditure will
	//be limited to the autoloop budget.
	Autoloop bool `protobuf:"varint,10,opt,name=autoloop,proto3" json:"autoloop,omitempty"`
	//
	//The total budget for automatically dispatched swaps since the budget start
	//time, expressed in satoshis.
	AutoloopBudgetSat uint64 `protobuf:"varint,11,opt,name=autoloop_budget_sat,json=autoloopBudgetSat,proto3" json:"autoloop_budget_sat,omitempty"`
	//
	//The start time for autoloop budget, expressed as a unix timestamp in
	//seconds. If this value is 0, the budget will be applied for all
	//automatically dispatched swaps. Swaps that were completed before this date
	//will not be included in budget calculations.
	AutoloopBudgetStartSec uint64 `` /* 133-byte string literal not displayed */
	//
	//The maximum number of automatically dispatched swaps that we allow to be in
	//flight at any point in time.
	AutoMaxInFlight uint64 `protobuf:"varint,13,opt,name=auto_max_in_flight,json=autoMaxInFlight,proto3" json:"auto_max_in_flight,omitempty"`
	//
	//The minimum amount, expressed in satoshis, that the autoloop client will
	//dispatch a swap for. This value is subject to the server-side limits
	//specified by the LoopOutTerms endpoint.
	MinSwapAmount uint64 `protobuf:"varint,14,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	//
	//The maximum amount, expressed in satoshis, that the autoloop client will
	//dispatch a swap for. This value is subject to the server-side limits
	//specified by the LoopOutTerms endpoint.
	MaxSwapAmount uint64 `protobuf:"varint,15,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*LiquidityParameters) Descriptor deprecated

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

Deprecated: Use LiquidityParameters.ProtoReflect.Descriptor instead.

func (*LiquidityParameters) GetAutoMaxInFlight

func (x *LiquidityParameters) GetAutoMaxInFlight() uint64

func (*LiquidityParameters) GetAutoloop

func (x *LiquidityParameters) GetAutoloop() bool

func (*LiquidityParameters) GetAutoloopBudgetSat

func (x *LiquidityParameters) GetAutoloopBudgetSat() uint64

func (*LiquidityParameters) GetAutoloopBudgetStartSec

func (x *LiquidityParameters) GetAutoloopBudgetStartSec() uint64

func (*LiquidityParameters) GetFailureBackoffSec

func (x *LiquidityParameters) GetFailureBackoffSec() uint64

func (*LiquidityParameters) GetFeePpm

func (x *LiquidityParameters) GetFeePpm() uint64

func (*LiquidityParameters) GetMaxMinerFeeSat

func (x *LiquidityParameters) GetMaxMinerFeeSat() uint64

func (*LiquidityParameters) GetMaxPrepayRoutingFeePpm

func (x *LiquidityParameters) GetMaxPrepayRoutingFeePpm() uint64

func (*LiquidityParameters) GetMaxPrepaySat

func (x *LiquidityParameters) GetMaxPrepaySat() uint64

func (*LiquidityParameters) GetMaxRoutingFeePpm

func (x *LiquidityParameters) GetMaxRoutingFeePpm() uint64

func (*LiquidityParameters) GetMaxSwapAmount

func (x *LiquidityParameters) GetMaxSwapAmount() uint64

func (*LiquidityParameters) GetMaxSwapFeePpm

func (x *LiquidityParameters) GetMaxSwapFeePpm() uint64

func (*LiquidityParameters) GetMinSwapAmount

func (x *LiquidityParameters) GetMinSwapAmount() uint64

func (*LiquidityParameters) GetRules

func (x *LiquidityParameters) GetRules() []*LiquidityRule

func (*LiquidityParameters) GetSweepConfTarget

func (x *LiquidityParameters) GetSweepConfTarget() int32

func (*LiquidityParameters) GetSweepFeeRateSatPerVbyte

func (x *LiquidityParameters) GetSweepFeeRateSatPerVbyte() uint64

func (*LiquidityParameters) ProtoMessage

func (*LiquidityParameters) ProtoMessage()

func (*LiquidityParameters) ProtoReflect

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

func (*LiquidityParameters) Reset

func (x *LiquidityParameters) Reset()

func (*LiquidityParameters) String

func (x *LiquidityParameters) String() string

type LiquidityRule

type LiquidityRule struct {

	//
	//The short channel ID of the channel that this rule should be applied to.
	//This field may not be set when the pubkey field is set.
	ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	//
	//The public key of the peer that this rule should be applied to. This field
	//may not be set when the channel id field is set.
	Pubkey []byte `protobuf:"bytes,5,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	//
	//Type indicates the type of rule that this message rule represents. Setting
	//this value will determine which fields are used in the message. The comments
	//on each field in this message will be prefixed with the LiquidityRuleType
	//they belong to.
	Type LiquidityRuleType `protobuf:"varint,2,opt,name=type,proto3,enum=looprpc.LiquidityRuleType" json:"type,omitempty"`
	//
	//THRESHOLD: The percentage of total capacity that incoming capacity should
	//not drop beneath.
	IncomingThreshold uint32 `protobuf:"varint,3,opt,name=incoming_threshold,json=incomingThreshold,proto3" json:"incoming_threshold,omitempty"`
	//
	//THRESHOLD: The percentage of total capacity that outgoing capacity should
	//not drop beneath.
	OutgoingThreshold uint32 `protobuf:"varint,4,opt,name=outgoing_threshold,json=outgoingThreshold,proto3" json:"outgoing_threshold,omitempty"`
	// contains filtered or unexported fields
}

func (*LiquidityRule) Descriptor deprecated

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

Deprecated: Use LiquidityRule.ProtoReflect.Descriptor instead.

func (*LiquidityRule) GetChannelId

func (x *LiquidityRule) GetChannelId() uint64

func (*LiquidityRule) GetIncomingThreshold

func (x *LiquidityRule) GetIncomingThreshold() uint32

func (*LiquidityRule) GetOutgoingThreshold

func (x *LiquidityRule) GetOutgoingThreshold() uint32

func (*LiquidityRule) GetPubkey

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

func (*LiquidityRule) GetType

func (x *LiquidityRule) GetType() LiquidityRuleType

func (*LiquidityRule) ProtoMessage

func (*LiquidityRule) ProtoMessage()

func (*LiquidityRule) ProtoReflect

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

func (*LiquidityRule) Reset

func (x *LiquidityRule) Reset()

func (*LiquidityRule) String

func (x *LiquidityRule) String() string

type LiquidityRuleType

type LiquidityRuleType int32
const (
	LiquidityRuleType_UNKNOWN   LiquidityRuleType = 0
	LiquidityRuleType_THRESHOLD LiquidityRuleType = 1
)

func (LiquidityRuleType) Descriptor

func (LiquidityRuleType) Enum

func (LiquidityRuleType) EnumDescriptor deprecated

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

Deprecated: Use LiquidityRuleType.Descriptor instead.

func (LiquidityRuleType) Number

func (LiquidityRuleType) String

func (x LiquidityRuleType) String() string

func (LiquidityRuleType) Type

type ListSwapsRequest

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

func (*ListSwapsRequest) Descriptor deprecated

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

Deprecated: Use ListSwapsRequest.ProtoReflect.Descriptor instead.

func (*ListSwapsRequest) ProtoMessage

func (*ListSwapsRequest) ProtoMessage()

func (*ListSwapsRequest) ProtoReflect

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

func (*ListSwapsRequest) Reset

func (x *ListSwapsRequest) Reset()

func (*ListSwapsRequest) String

func (x *ListSwapsRequest) String() string

type ListSwapsResponse

type ListSwapsResponse struct {

	//
	//The list of all currently known swaps and their status.
	Swaps []*SwapStatus `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSwapsResponse) Descriptor deprecated

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

Deprecated: Use ListSwapsResponse.ProtoReflect.Descriptor instead.

func (*ListSwapsResponse) GetSwaps

func (x *ListSwapsResponse) GetSwaps() []*SwapStatus

func (*ListSwapsResponse) ProtoMessage

func (*ListSwapsResponse) ProtoMessage()

func (*ListSwapsResponse) ProtoReflect

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

func (*ListSwapsResponse) Reset

func (x *ListSwapsResponse) Reset()

func (*ListSwapsResponse) String

func (x *ListSwapsResponse) String() string

type LoopInRequest

type LoopInRequest struct {

	//
	//Requested swap amount in sat. This does not include the swap and miner
	//fee.
	Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	//
	//Maximum we are willing to pay the server for the swap. This value is not
	//disclosed in the swap initiation call, but if the server asks for a
	//higher fee, we abort the swap. Typically this value is taken from the
	//response of the GetQuote call.
	MaxSwapFee int64 `protobuf:"varint,2,opt,name=max_swap_fee,json=maxSwapFee,proto3" json:"max_swap_fee,omitempty"`
	//
	//Maximum in on-chain fees that we are willing to spend. If we want to
	//publish the on-chain htlc and the fee estimate turns out higher than this
	//value, we cancel the swap.
	//
	//max_miner_fee is typically taken from the response of the GetQuote call.
	MaxMinerFee int64 `protobuf:"varint,3,opt,name=max_miner_fee,json=maxMinerFee,proto3" json:"max_miner_fee,omitempty"`
	//
	//The last hop to use for the loop in swap. If empty, the last hop is selected
	//based on the lowest routing fee for the swap payment from the server.
	LastHop []byte `protobuf:"bytes,4,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"`
	//
	//If external_htlc is true, we expect the htlc to be published by an external
	//actor.
	ExternalHtlc bool `protobuf:"varint,5,opt,name=external_htlc,json=externalHtlc,proto3" json:"external_htlc,omitempty"`
	//
	//The number of blocks that the on chain htlc should confirm within.
	HtlcConfTarget int32 `protobuf:"varint,6,opt,name=htlc_conf_target,json=htlcConfTarget,proto3" json:"htlc_conf_target,omitempty"`
	//
	//An optional label for this swap. This field is limited to 500 characters
	//and may not be one of the reserved values in loop/labels Reserved list.
	Label string `protobuf:"bytes,7,opt,name=label,proto3" json:"label,omitempty"`
	//
	//An optional identification string that will be appended to the user agent
	//string sent to the server to give information about the usage of loop. This
	//initiator part is meant for user interfaces to add their name to give the
	//full picture of the binary used (loopd, LiT) and the method used for
	//triggering the swap (loop CLI, autolooper, LiT UI, other 3rd party UI).
	Initiator string `protobuf:"bytes,8,opt,name=initiator,proto3" json:"initiator,omitempty"`
	// contains filtered or unexported fields
}

func (*LoopInRequest) Descriptor deprecated

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

Deprecated: Use LoopInRequest.ProtoReflect.Descriptor instead.

func (*LoopInRequest) GetAmt

func (x *LoopInRequest) GetAmt() int64

func (*LoopInRequest) GetExternalHtlc

func (x *LoopInRequest) GetExternalHtlc() bool

func (*LoopInRequest) GetHtlcConfTarget

func (x *LoopInRequest) GetHtlcConfTarget() int32

func (*LoopInRequest) GetInitiator

func (x *LoopInRequest) GetInitiator() string

func (*LoopInRequest) GetLabel

func (x *LoopInRequest) GetLabel() string

func (*LoopInRequest) GetLastHop

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

func (*LoopInRequest) GetMaxMinerFee

func (x *LoopInRequest) GetMaxMinerFee() int64

func (*LoopInRequest) GetMaxSwapFee

func (x *LoopInRequest) GetMaxSwapFee() int64

func (*LoopInRequest) ProtoMessage

func (*LoopInRequest) ProtoMessage()

func (*LoopInRequest) ProtoReflect

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

func (*LoopInRequest) Reset

func (x *LoopInRequest) Reset()

func (*LoopInRequest) String

func (x *LoopInRequest) String() string

type LoopOutRequest

type LoopOutRequest struct {

	//
	//Requested swap amount in sat. This does not include the swap and miner fee.
	Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	//
	//Base58 encoded destination address for the swap.
	Dest string `protobuf:"bytes,2,opt,name=dest,proto3" json:"dest,omitempty"`
	//
	//Maximum off-chain fee in sat that may be paid for swap payment to the
	//server. This limit is applied during path finding. Typically this value is
	//taken from the response of the GetQuote call.
	MaxSwapRoutingFee int64 `protobuf:"varint,3,opt,name=max_swap_routing_fee,json=maxSwapRoutingFee,proto3" json:"max_swap_routing_fee,omitempty"`
	//
	//Maximum off-chain fee in sat that may be paid for the prepay to the server.
	//This limit is applied during path finding. Typically this value is taken
	//from the response of the GetQuote call.
	MaxPrepayRoutingFee int64 `protobuf:"varint,4,opt,name=max_prepay_routing_fee,json=maxPrepayRoutingFee,proto3" json:"max_prepay_routing_fee,omitempty"`
	//
	//Maximum we are willing to pay the server for the swap. This value is not
	//disclosed in the swap initiation call, but if the server asks for a
	//higher fee, we abort the swap. Typically this value is taken from the
	//response of the GetQuote call. It includes the prepay amount.
	MaxSwapFee int64 `protobuf:"varint,5,opt,name=max_swap_fee,json=maxSwapFee,proto3" json:"max_swap_fee,omitempty"`
	//
	//Maximum amount of the swap fee that may be charged as a prepayment.
	MaxPrepayAmt int64 `protobuf:"varint,6,opt,name=max_prepay_amt,json=maxPrepayAmt,proto3" json:"max_prepay_amt,omitempty"`
	//
	//Maximum in on-chain fees that we are willing to spend. If we want to
	//sweep the on-chain htlc and the fee estimate turns out higher than this
	//value, we cancel the swap. If the fee estimate is lower, we publish the
	//sweep tx.
	//
	//If the sweep tx is not confirmed, we are forced to ratchet up fees until it
	//is swept. Possibly even exceeding max_miner_fee if we get close to the htlc
	//timeout. Because the initial publication revealed the preimage, we have no
	//other choice. The server may already have pulled the off-chain htlc. Only
	//when the fee becomes higher than the swap amount, we can only wait for fees
	//to come down and hope - if we are past the timeout - that the server is not
	//publishing the revocation.
	//
	//max_miner_fee is typically taken from the response of the GetQuote call.
	MaxMinerFee int64 `protobuf:"varint,7,opt,name=max_miner_fee,json=maxMinerFee,proto3" json:"max_miner_fee,omitempty"`
	//
	//Deprecated, use outgoing_chan_set. The channel to loop out, the channel
	//to loop out is selected based on the lowest routing fee for the swap
	//payment to the server.
	//
	// Deprecated: Do not use.
	LoopOutChannel uint64 `protobuf:"varint,8,opt,name=loop_out_channel,json=loopOutChannel,proto3" json:"loop_out_channel,omitempty"`
	//
	//A restriction on the channel set that may be used to loop out. The actual
	//channel(s) that will be used are selected based on the lowest routing fee
	//for the swap payment to the server.
	OutgoingChanSet []uint64 `protobuf:"varint,11,rep,packed,name=outgoing_chan_set,json=outgoingChanSet,proto3" json:"outgoing_chan_set,omitempty"`
	//
	//The number of blocks from the on-chain HTLC's confirmation height that it
	//should be swept within.
	SweepConfTarget int32 `protobuf:"varint,9,opt,name=sweep_conf_target,json=sweepConfTarget,proto3" json:"sweep_conf_target,omitempty"`
	//
	//The number of confirmations that we require for the on chain htlc that will
	//be published by the server before we reveal the preimage.
	HtlcConfirmations int32 `protobuf:"varint,13,opt,name=htlc_confirmations,json=htlcConfirmations,proto3" json:"htlc_confirmations,omitempty"`
	//
	//The latest time (in unix seconds) we allow the server to wait before
	//publishing the HTLC on chain. Setting this to a larger value will give the
	//server the opportunity to batch multiple swaps together, and wait for
	//low-fee periods before publishing the HTLC, potentially resulting in a
	//lower total swap fee.
	SwapPublicationDeadline uint64 `` /* 134-byte string literal not displayed */
	//
	//An optional label for this swap. This field is limited to 500 characters
	//and may not start with the prefix [reserved], which is used to tag labels
	//produced by the daemon.
	Label string `protobuf:"bytes,12,opt,name=label,proto3" json:"label,omitempty"`
	//
	//An optional identification string that will be appended to the user agent
	//string sent to the server to give information about the usage of loop. This
	//initiator part is meant for user interfaces to add their name to give the
	//full picture of the binary used (loopd, LiT) and the method used for
	//triggering the swap (loop CLI, autolooper, LiT UI, other 3rd party UI).
	Initiator string `protobuf:"bytes,14,opt,name=initiator,proto3" json:"initiator,omitempty"`
	// contains filtered or unexported fields
}

func (*LoopOutRequest) Descriptor deprecated

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

Deprecated: Use LoopOutRequest.ProtoReflect.Descriptor instead.

func (*LoopOutRequest) GetAmt

func (x *LoopOutRequest) GetAmt() int64

func (*LoopOutRequest) GetDest

func (x *LoopOutRequest) GetDest() string

func (*LoopOutRequest) GetHtlcConfirmations

func (x *LoopOutRequest) GetHtlcConfirmations() int32

func (*LoopOutRequest) GetInitiator

func (x *LoopOutRequest) GetInitiator() string

func (*LoopOutRequest) GetLabel

func (x *LoopOutRequest) GetLabel() string

func (*LoopOutRequest) GetLoopOutChannel deprecated

func (x *LoopOutRequest) GetLoopOutChannel() uint64

Deprecated: Do not use.

func (*LoopOutRequest) GetMaxMinerFee

func (x *LoopOutRequest) GetMaxMinerFee() int64

func (*LoopOutRequest) GetMaxPrepayAmt

func (x *LoopOutRequest) GetMaxPrepayAmt() int64

func (*LoopOutRequest) GetMaxPrepayRoutingFee

func (x *LoopOutRequest) GetMaxPrepayRoutingFee() int64

func (*LoopOutRequest) GetMaxSwapFee

func (x *LoopOutRequest) GetMaxSwapFee() int64

func (*LoopOutRequest) GetMaxSwapRoutingFee

func (x *LoopOutRequest) GetMaxSwapRoutingFee() int64

func (*LoopOutRequest) GetOutgoingChanSet

func (x *LoopOutRequest) GetOutgoingChanSet() []uint64

func (*LoopOutRequest) GetSwapPublicationDeadline

func (x *LoopOutRequest) GetSwapPublicationDeadline() uint64

func (*LoopOutRequest) GetSweepConfTarget

func (x *LoopOutRequest) GetSweepConfTarget() int32

func (*LoopOutRequest) ProtoMessage

func (*LoopOutRequest) ProtoMessage()

func (*LoopOutRequest) ProtoReflect

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

func (*LoopOutRequest) Reset

func (x *LoopOutRequest) Reset()

func (*LoopOutRequest) String

func (x *LoopOutRequest) String() string

type LsatToken

type LsatToken struct {

	//
	//The base macaroon that was baked by the auth server.
	BaseMacaroon []byte `protobuf:"bytes,1,opt,name=base_macaroon,json=baseMacaroon,proto3" json:"base_macaroon,omitempty"`
	//
	//The payment hash of the payment that was paid to obtain the token.
	PaymentHash []byte `protobuf:"bytes,2,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
	//
	//The preimage of the payment hash, knowledge of this is proof that the
	//payment has been paid. If the preimage is set to all zeros, this means the
	//payment is still pending and the token is not yet fully valid.
	PaymentPreimage []byte `protobuf:"bytes,3,opt,name=payment_preimage,json=paymentPreimage,proto3" json:"payment_preimage,omitempty"`
	//
	//The amount of millisatoshis that was paid to get the token.
	AmountPaidMsat int64 `protobuf:"varint,4,opt,name=amount_paid_msat,json=amountPaidMsat,proto3" json:"amount_paid_msat,omitempty"`
	//
	//The amount of millisatoshis paid in routing fee to pay for the token.
	RoutingFeePaidMsat int64 `protobuf:"varint,5,opt,name=routing_fee_paid_msat,json=routingFeePaidMsat,proto3" json:"routing_fee_paid_msat,omitempty"`
	//
	//The creation time of the token as UNIX timestamp in seconds.
	TimeCreated int64 `protobuf:"varint,6,opt,name=time_created,json=timeCreated,proto3" json:"time_created,omitempty"`
	//
	//Indicates whether the token is expired or still valid.
	Expired bool `protobuf:"varint,7,opt,name=expired,proto3" json:"expired,omitempty"`
	//
	//Identifying attribute of this token in the store. Currently represents the
	//file name of the token where it's stored on the file system.
	StorageName string `protobuf:"bytes,8,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
	// contains filtered or unexported fields
}

func (*LsatToken) Descriptor deprecated

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

Deprecated: Use LsatToken.ProtoReflect.Descriptor instead.

func (*LsatToken) GetAmountPaidMsat

func (x *LsatToken) GetAmountPaidMsat() int64

func (*LsatToken) GetBaseMacaroon

func (x *LsatToken) GetBaseMacaroon() []byte

func (*LsatToken) GetExpired

func (x *LsatToken) GetExpired() bool

func (*LsatToken) GetPaymentHash

func (x *LsatToken) GetPaymentHash() []byte

func (*LsatToken) GetPaymentPreimage

func (x *LsatToken) GetPaymentPreimage() []byte

func (*LsatToken) GetRoutingFeePaidMsat

func (x *LsatToken) GetRoutingFeePaidMsat() int64

func (*LsatToken) GetStorageName

func (x *LsatToken) GetStorageName() string

func (*LsatToken) GetTimeCreated

func (x *LsatToken) GetTimeCreated() int64

func (*LsatToken) ProtoMessage

func (*LsatToken) ProtoMessage()

func (*LsatToken) ProtoReflect

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

func (*LsatToken) Reset

func (x *LsatToken) Reset()

func (*LsatToken) String

func (x *LsatToken) String() string

type MonitorRequest

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

func (*MonitorRequest) Descriptor deprecated

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

Deprecated: Use MonitorRequest.ProtoReflect.Descriptor instead.

func (*MonitorRequest) ProtoMessage

func (*MonitorRequest) ProtoMessage()

func (*MonitorRequest) ProtoReflect

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

func (*MonitorRequest) Reset

func (x *MonitorRequest) Reset()

func (*MonitorRequest) String

func (x *MonitorRequest) String() string

type OutQuoteResponse

type OutQuoteResponse struct {

	//
	//The fee that the swap server is charging for the swap.
	SwapFeeSat int64 `protobuf:"varint,1,opt,name=swap_fee_sat,json=swapFeeSat,proto3" json:"swap_fee_sat,omitempty"`
	//
	//The part of the swap fee that is requested as a prepayment.
	PrepayAmtSat int64 `protobuf:"varint,2,opt,name=prepay_amt_sat,json=prepayAmtSat,proto3" json:"prepay_amt_sat,omitempty"`
	//
	//An estimate of the on-chain fee that needs to be paid to sweep the HTLC for
	//a loop out.
	HtlcSweepFeeSat int64 `protobuf:"varint,3,opt,name=htlc_sweep_fee_sat,json=htlcSweepFeeSat,proto3" json:"htlc_sweep_fee_sat,omitempty"`
	//
	//The node pubkey where the swap payment needs to be paid
	//to. This can be used to test connectivity before initiating the swap.
	SwapPaymentDest []byte `protobuf:"bytes,4,opt,name=swap_payment_dest,json=swapPaymentDest,proto3" json:"swap_payment_dest,omitempty"`
	//
	//On-chain cltv expiry delta
	CltvDelta int32 `protobuf:"varint,5,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"`
	//
	//The confirmation target to be used for the sweep of the on-chain HTLC.
	ConfTarget int32 `protobuf:"varint,6,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"`
	// contains filtered or unexported fields
}

func (*OutQuoteResponse) Descriptor deprecated

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

Deprecated: Use OutQuoteResponse.ProtoReflect.Descriptor instead.

func (*OutQuoteResponse) GetCltvDelta

func (x *OutQuoteResponse) GetCltvDelta() int32

func (*OutQuoteResponse) GetConfTarget

func (x *OutQuoteResponse) GetConfTarget() int32

func (*OutQuoteResponse) GetHtlcSweepFeeSat

func (x *OutQuoteResponse) GetHtlcSweepFeeSat() int64

func (*OutQuoteResponse) GetPrepayAmtSat

func (x *OutQuoteResponse) GetPrepayAmtSat() int64

func (*OutQuoteResponse) GetSwapFeeSat

func (x *OutQuoteResponse) GetSwapFeeSat() int64

func (*OutQuoteResponse) GetSwapPaymentDest

func (x *OutQuoteResponse) GetSwapPaymentDest() []byte

func (*OutQuoteResponse) ProtoMessage

func (*OutQuoteResponse) ProtoMessage()

func (*OutQuoteResponse) ProtoReflect

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

func (*OutQuoteResponse) Reset

func (x *OutQuoteResponse) Reset()

func (*OutQuoteResponse) String

func (x *OutQuoteResponse) String() string

type OutTermsResponse

type OutTermsResponse struct {

	//
	//Minimum swap amount (sat)
	MinSwapAmount int64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	//
	//Maximum swap amount (sat)
	MaxSwapAmount int64 `protobuf:"varint,6,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,8,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,9,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"`
	// contains filtered or unexported fields
}

func (*OutTermsResponse) Descriptor deprecated

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

Deprecated: Use OutTermsResponse.ProtoReflect.Descriptor instead.

func (*OutTermsResponse) GetMaxCltvDelta

func (x *OutTermsResponse) GetMaxCltvDelta() int32

func (*OutTermsResponse) GetMaxSwapAmount

func (x *OutTermsResponse) GetMaxSwapAmount() int64

func (*OutTermsResponse) GetMinCltvDelta

func (x *OutTermsResponse) GetMinCltvDelta() int32

func (*OutTermsResponse) GetMinSwapAmount

func (x *OutTermsResponse) GetMinSwapAmount() int64

func (*OutTermsResponse) ProtoMessage

func (*OutTermsResponse) ProtoMessage()

func (*OutTermsResponse) ProtoReflect

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

func (*OutTermsResponse) Reset

func (x *OutTermsResponse) Reset()

func (*OutTermsResponse) String

func (x *OutTermsResponse) 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
)

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 QuoteRequest

type QuoteRequest struct {

	//
	//The amount to swap in satoshis.
	Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	//
	//The confirmation target that should be used either for the sweep of the
	//on-chain HTLC broadcast by the swap server in the case of a Loop Out, or for
	//the confirmation of the on-chain HTLC broadcast by the swap client in the
	//case of a Loop In.
	ConfTarget int32 `protobuf:"varint,2,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"`
	//
	//If external_htlc is true, we expect the htlc to be published by an external
	//actor.
	ExternalHtlc bool `protobuf:"varint,3,opt,name=external_htlc,json=externalHtlc,proto3" json:"external_htlc,omitempty"`
	//
	//The latest time (in unix seconds) we allow the server to wait before
	//publishing the HTLC on chain. Setting this to a larger value will give the
	//server the opportunity to batch multiple swaps together, and wait for
	//low-fee periods before publishing the HTLC, potentially resulting in a
	//lower total swap fee. This only has an effect on loop out quotes.
	SwapPublicationDeadline uint64 `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*QuoteRequest) Descriptor deprecated

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

Deprecated: Use QuoteRequest.ProtoReflect.Descriptor instead.

func (*QuoteRequest) GetAmt

func (x *QuoteRequest) GetAmt() int64

func (*QuoteRequest) GetConfTarget

func (x *QuoteRequest) GetConfTarget() int32

func (*QuoteRequest) GetExternalHtlc

func (x *QuoteRequest) GetExternalHtlc() bool

func (*QuoteRequest) GetSwapPublicationDeadline

func (x *QuoteRequest) GetSwapPublicationDeadline() uint64

func (*QuoteRequest) ProtoMessage

func (*QuoteRequest) ProtoMessage()

func (*QuoteRequest) ProtoReflect

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

func (*QuoteRequest) Reset

func (x *QuoteRequest) Reset()

func (*QuoteRequest) String

func (x *QuoteRequest) String() string

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

func (x *ServerLoopInQuoteRequest) GetProtocolVersion() ProtocolVersion

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

type SetLiquidityParamsRequest struct {

	//
	//Parameters is the desired new set of parameters for the liquidity management
	//subsystem. Note that the current set of parameters will be completely
	//overwritten by the parameters provided (if they are valid), so the full set
	//of parameters should be provided for each call.
	Parameters *LiquidityParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

func (*SetLiquidityParamsRequest) Descriptor deprecated

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

Deprecated: Use SetLiquidityParamsRequest.ProtoReflect.Descriptor instead.

func (*SetLiquidityParamsRequest) GetParameters

func (x *SetLiquidityParamsRequest) GetParameters() *LiquidityParameters

func (*SetLiquidityParamsRequest) ProtoMessage

func (*SetLiquidityParamsRequest) ProtoMessage()

func (*SetLiquidityParamsRequest) ProtoReflect

func (*SetLiquidityParamsRequest) Reset

func (x *SetLiquidityParamsRequest) Reset()

func (*SetLiquidityParamsRequest) String

func (x *SetLiquidityParamsRequest) String() string

type SetLiquidityParamsResponse

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

func (*SetLiquidityParamsResponse) Descriptor deprecated

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

Deprecated: Use SetLiquidityParamsResponse.ProtoReflect.Descriptor instead.

func (*SetLiquidityParamsResponse) ProtoMessage

func (*SetLiquidityParamsResponse) ProtoMessage()

func (*SetLiquidityParamsResponse) ProtoReflect

func (*SetLiquidityParamsResponse) Reset

func (x *SetLiquidityParamsResponse) Reset()

func (*SetLiquidityParamsResponse) String

func (x *SetLiquidityParamsResponse) String() string

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 SuggestSwapsRequest

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

func (*SuggestSwapsRequest) Descriptor deprecated

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

Deprecated: Use SuggestSwapsRequest.ProtoReflect.Descriptor instead.

func (*SuggestSwapsRequest) ProtoMessage

func (*SuggestSwapsRequest) ProtoMessage()

func (*SuggestSwapsRequest) ProtoReflect

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

func (*SuggestSwapsRequest) Reset

func (x *SuggestSwapsRequest) Reset()

func (*SuggestSwapsRequest) String

func (x *SuggestSwapsRequest) String() string

type SuggestSwapsResponse

type SuggestSwapsResponse struct {

	//
	//The set of recommended loop outs.
	LoopOut []*LoopOutRequest `protobuf:"bytes,1,rep,name=loop_out,json=loopOut,proto3" json:"loop_out,omitempty"`
	//
	//Disqualified contains the set of channels that swaps are not recommended
	//for.
	Disqualified []*Disqualified `protobuf:"bytes,2,rep,name=disqualified,proto3" json:"disqualified,omitempty"`
	// contains filtered or unexported fields
}

func (*SuggestSwapsResponse) Descriptor deprecated

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

Deprecated: Use SuggestSwapsResponse.ProtoReflect.Descriptor instead.

func (*SuggestSwapsResponse) GetDisqualified

func (x *SuggestSwapsResponse) GetDisqualified() []*Disqualified

func (*SuggestSwapsResponse) GetLoopOut

func (x *SuggestSwapsResponse) GetLoopOut() []*LoopOutRequest

func (*SuggestSwapsResponse) ProtoMessage

func (*SuggestSwapsResponse) ProtoMessage()

func (*SuggestSwapsResponse) ProtoReflect

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

func (*SuggestSwapsResponse) Reset

func (x *SuggestSwapsResponse) Reset()

func (*SuggestSwapsResponse) String

func (x *SuggestSwapsResponse) String() string

type SwapClientClient

type SwapClientClient interface {
	// loop: `out`
	//LoopOut initiates an loop out swap with the given parameters. The call
	//returns after the swap has been set up with the swap server. From that
	//point onwards, progress can be tracked via the SwapStatus stream that is
	//returned from Monitor().
	LoopOut(ctx context.Context, in *LoopOutRequest, opts ...grpc.CallOption) (*SwapResponse, error)
	// loop: `in`
	//LoopIn initiates a loop in swap with the given parameters. The call
	//returns after the swap has been set up with the swap server. From that
	//point onwards, progress can be tracked via the SwapStatus stream
	//that is returned from Monitor().
	LoopIn(ctx context.Context, in *LoopInRequest, opts ...grpc.CallOption) (*SwapResponse, error)
	// loop: `monitor`
	//Monitor will return a stream of swap updates for currently active swaps.
	Monitor(ctx context.Context, in *MonitorRequest, opts ...grpc.CallOption) (SwapClient_MonitorClient, error)
	// loop: `listswaps`
	//ListSwaps returns a list of all currently known swaps and their current
	//status.
	ListSwaps(ctx context.Context, in *ListSwapsRequest, opts ...grpc.CallOption) (*ListSwapsResponse, error)
	// loop: `swapinfo`
	//SwapInfo returns all known details about a single swap.
	SwapInfo(ctx context.Context, in *SwapInfoRequest, opts ...grpc.CallOption) (*SwapStatus, error)
	// loop: `terms`
	//LoopOutTerms returns the terms that the server enforces for a loop out swap.
	LoopOutTerms(ctx context.Context, in *TermsRequest, opts ...grpc.CallOption) (*OutTermsResponse, error)
	// loop: `quote`
	//LoopOutQuote returns a quote for a loop out swap with the provided
	//parameters.
	LoopOutQuote(ctx context.Context, in *QuoteRequest, opts ...grpc.CallOption) (*OutQuoteResponse, error)
	// loop: `terms`
	//GetTerms returns the terms that the server enforces for swaps.
	GetLoopInTerms(ctx context.Context, in *TermsRequest, opts ...grpc.CallOption) (*InTermsResponse, error)
	// loop: `quote`
	//GetQuote returns a quote for a swap with the provided parameters.
	GetLoopInQuote(ctx context.Context, in *QuoteRequest, opts ...grpc.CallOption) (*InQuoteResponse, error)
	// loop: `listauth`
	//GetLsatTokens returns all LSAT tokens the daemon ever paid for.
	GetLsatTokens(ctx context.Context, in *TokensRequest, opts ...grpc.CallOption) (*TokensResponse, error)
	// loop: `getparams`
	//GetLiquidityParams gets the parameters that the daemon's liquidity manager
	//is currently configured with. This may be nil if nothing is configured.
	//[EXPERIMENTAL]: endpoint is subject to change.
	GetLiquidityParams(ctx context.Context, in *GetLiquidityParamsRequest, opts ...grpc.CallOption) (*LiquidityParameters, error)
	// loop: `setparams`
	//SetLiquidityParams sets a new set of parameters for the daemon's liquidity
	//manager. Note that the full set of parameters must be provided, because
	//this call fully overwrites our existing parameters.
	//[EXPERIMENTAL]: endpoint is subject to change.
	SetLiquidityParams(ctx context.Context, in *SetLiquidityParamsRequest, opts ...grpc.CallOption) (*SetLiquidityParamsResponse, error)
	// loop: `suggestswaps`
	//SuggestSwaps returns a list of recommended swaps based on the current
	//state of your node's channels and it's liquidity manager parameters.
	//Note that only loop out suggestions are currently supported.
	//[EXPERIMENTAL]: endpoint is subject to change.
	SuggestSwaps(ctx context.Context, in *SuggestSwapsRequest, opts ...grpc.CallOption) (*SuggestSwapsResponse, error)
}

SwapClientClient is the client API for SwapClient service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSwapClientClient

func NewSwapClientClient(cc grpc.ClientConnInterface) SwapClientClient

type SwapClientServer

type SwapClientServer interface {
	// loop: `out`
	//LoopOut initiates an loop out swap with the given parameters. The call
	//returns after the swap has been set up with the swap server. From that
	//point onwards, progress can be tracked via the SwapStatus stream that is
	//returned from Monitor().
	LoopOut(context.Context, *LoopOutRequest) (*SwapResponse, error)
	// loop: `in`
	//LoopIn initiates a loop in swap with the given parameters. The call
	//returns after the swap has been set up with the swap server. From that
	//point onwards, progress can be tracked via the SwapStatus stream
	//that is returned from Monitor().
	LoopIn(context.Context, *LoopInRequest) (*SwapResponse, error)
	// loop: `monitor`
	//Monitor will return a stream of swap updates for currently active swaps.
	Monitor(*MonitorRequest, SwapClient_MonitorServer) error
	// loop: `listswaps`
	//ListSwaps returns a list of all currently known swaps and their current
	//status.
	ListSwaps(context.Context, *ListSwapsRequest) (*ListSwapsResponse, error)
	// loop: `swapinfo`
	//SwapInfo returns all known details about a single swap.
	SwapInfo(context.Context, *SwapInfoRequest) (*SwapStatus, error)
	// loop: `terms`
	//LoopOutTerms returns the terms that the server enforces for a loop out swap.
	LoopOutTerms(context.Context, *TermsRequest) (*OutTermsResponse, error)
	// loop: `quote`
	//LoopOutQuote returns a quote for a loop out swap with the provided
	//parameters.
	LoopOutQuote(context.Context, *QuoteRequest) (*OutQuoteResponse, error)
	// loop: `terms`
	//GetTerms returns the terms that the server enforces for swaps.
	GetLoopInTerms(context.Context, *TermsRequest) (*InTermsResponse, error)
	// loop: `quote`
	//GetQuote returns a quote for a swap with the provided parameters.
	GetLoopInQuote(context.Context, *QuoteRequest) (*InQuoteResponse, error)
	// loop: `listauth`
	//GetLsatTokens returns all LSAT tokens the daemon ever paid for.
	GetLsatTokens(context.Context, *TokensRequest) (*TokensResponse, error)
	// loop: `getparams`
	//GetLiquidityParams gets the parameters that the daemon's liquidity manager
	//is currently configured with. This may be nil if nothing is configured.
	//[EXPERIMENTAL]: endpoint is subject to change.
	GetLiquidityParams(context.Context, *GetLiquidityParamsRequest) (*LiquidityParameters, error)
	// loop: `setparams`
	//SetLiquidityParams sets a new set of parameters for the daemon's liquidity
	//manager. Note that the full set of parameters must be provided, because
	//this call fully overwrites our existing parameters.
	//[EXPERIMENTAL]: endpoint is subject to change.
	SetLiquidityParams(context.Context, *SetLiquidityParamsRequest) (*SetLiquidityParamsResponse, error)
	// loop: `suggestswaps`
	//SuggestSwaps returns a list of recommended swaps based on the current
	//state of your node's channels and it's liquidity manager parameters.
	//Note that only loop out suggestions are currently supported.
	//[EXPERIMENTAL]: endpoint is subject to change.
	SuggestSwaps(context.Context, *SuggestSwapsRequest) (*SuggestSwapsResponse, error)
}

SwapClientServer is the server API for SwapClient service.

type SwapClient_MonitorClient

type SwapClient_MonitorClient interface {
	Recv() (*SwapStatus, error)
	grpc.ClientStream
}

type SwapClient_MonitorServer

type SwapClient_MonitorServer interface {
	Send(*SwapStatus) error
	grpc.ServerStream
}

type SwapInfoRequest

type SwapInfoRequest struct {

	//
	//The swap identifier which currently is the hash that locks the HTLCs. When
	//using REST, this field must be encoded as URL safe base64.
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapInfoRequest) Descriptor deprecated

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

Deprecated: Use SwapInfoRequest.ProtoReflect.Descriptor instead.

func (*SwapInfoRequest) GetId

func (x *SwapInfoRequest) GetId() []byte

func (*SwapInfoRequest) ProtoMessage

func (*SwapInfoRequest) ProtoMessage()

func (*SwapInfoRequest) ProtoReflect

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

func (*SwapInfoRequest) Reset

func (x *SwapInfoRequest) Reset()

func (*SwapInfoRequest) String

func (x *SwapInfoRequest) String() string

type SwapResponse

type SwapResponse struct {

	//
	//Swap identifier to track status in the update stream that is returned from
	//the Start() call. Currently this is the hash that locks the htlcs.
	//DEPRECATED: To make the API more consistent, this field is deprecated in
	//favor of id_bytes and will be removed in a future release.
	//
	// Deprecated: Do not use.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	//
	//Swap identifier to track status in the update stream that is returned from
	//the Start() call. Currently this is the hash that locks the htlcs.
	IdBytes []byte `protobuf:"bytes,3,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"`
	//
	//DEPRECATED. This field stores the address of the onchain htlc, but
	//depending on the request, the semantics are different.
	//- For internal loop-in htlc_address contains the address of the
	//native segwit (P2WSH) htlc.
	//- For external loop-in htlc_address contains the address of the
	//nested segwit (NP2WSH) htlc.
	//- For loop-out htlc_address always contains the native segwit (P2WSH)
	//htlc address.
	//
	// Deprecated: Do not use.
	HtlcAddress string `protobuf:"bytes,2,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"`
	//
	//The nested segwit address of the on-chain htlc.
	//This field remains empty for loop-out.
	HtlcAddressNp2Wsh string `protobuf:"bytes,4,opt,name=htlc_address_np2wsh,json=htlcAddressNp2wsh,proto3" json:"htlc_address_np2wsh,omitempty"`
	//
	//The native segwit address of the on-chain htlc.
	//Used for both loop-in and loop-out.
	HtlcAddressP2Wsh string `protobuf:"bytes,5,opt,name=htlc_address_p2wsh,json=htlcAddressP2wsh,proto3" json:"htlc_address_p2wsh,omitempty"`
	// A human-readable message received from the loop server.
	ServerMessage string `protobuf:"bytes,6,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapResponse) Descriptor deprecated

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

Deprecated: Use SwapResponse.ProtoReflect.Descriptor instead.

func (*SwapResponse) GetHtlcAddress deprecated

func (x *SwapResponse) GetHtlcAddress() string

Deprecated: Do not use.

func (*SwapResponse) GetHtlcAddressNp2Wsh

func (x *SwapResponse) GetHtlcAddressNp2Wsh() string

func (*SwapResponse) GetHtlcAddressP2Wsh

func (x *SwapResponse) GetHtlcAddressP2Wsh() string

func (*SwapResponse) GetId deprecated

func (x *SwapResponse) GetId() string

Deprecated: Do not use.

func (*SwapResponse) GetIdBytes

func (x *SwapResponse) GetIdBytes() []byte

func (*SwapResponse) GetServerMessage

func (x *SwapResponse) GetServerMessage() string

func (*SwapResponse) ProtoMessage

func (*SwapResponse) ProtoMessage()

func (*SwapResponse) ProtoReflect

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

func (*SwapResponse) Reset

func (x *SwapResponse) Reset()

func (*SwapResponse) String

func (x *SwapResponse) 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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSwapServerClient

func NewSwapServerClient(cc grpc.ClientConnInterface) SwapServerClient

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 SwapState

type SwapState int32
const (
	//
	//INITIATED is the initial state of a swap. At that point, the initiation
	//call to the server has been made and the payment process has been started
	//for the swap and prepayment invoices.
	SwapState_INITIATED SwapState = 0
	//
	//PREIMAGE_REVEALED is reached when the sweep tx publication is first
	//attempted. From that point on, we should consider the preimage to no
	//longer be secret and we need to do all we can to get the sweep confirmed.
	//This state will mostly coalesce with StateHtlcConfirmed, except in the
	//case where we wait for fees to come down before we sweep.
	SwapState_PREIMAGE_REVEALED SwapState = 1
	//
	//HTLC_PUBLISHED is reached when the htlc tx has been published in a loop in
	//swap.
	SwapState_HTLC_PUBLISHED SwapState = 2
	//
	//SUCCESS is the final swap state that is reached when the sweep tx has
	//the required confirmation depth.
	SwapState_SUCCESS SwapState = 3
	//
	//FAILED is the final swap state for a failed swap with or without loss of
	//the swap amount.
	SwapState_FAILED SwapState = 4
	//
	//INVOICE_SETTLED is reached when the swap invoice in a loop in swap has been
	//paid, but we are still waiting for the htlc spend to confirm.
	SwapState_INVOICE_SETTLED SwapState = 5
)

func (SwapState) Descriptor

func (SwapState) Descriptor() protoreflect.EnumDescriptor

func (SwapState) Enum

func (x SwapState) Enum() *SwapState

func (SwapState) EnumDescriptor deprecated

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

Deprecated: Use SwapState.Descriptor instead.

func (SwapState) Number

func (x SwapState) Number() protoreflect.EnumNumber

func (SwapState) String

func (x SwapState) String() string

func (SwapState) Type

type SwapStatus

type SwapStatus struct {

	//
	//Requested swap amount in sat. This does not include the swap and miner
	//fee.
	Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	//
	//Swap identifier to track status in the update stream that is returned from
	//the Start() call. Currently this is the hash that locks the htlcs.
	//DEPRECATED: To make the API more consistent, this field is deprecated in
	//favor of id_bytes and will be removed in a future release.
	//
	// Deprecated: Do not use.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	//
	//Swap identifier to track status in the update stream that is returned from
	//the Start() call. Currently this is the hash that locks the htlcs.
	IdBytes []byte `protobuf:"bytes,11,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"`
	//
	//The type of the swap.
	Type SwapType `protobuf:"varint,3,opt,name=type,proto3,enum=looprpc.SwapType" json:"type,omitempty"`
	//
	//State the swap is currently in, see State enum.
	State SwapState `protobuf:"varint,4,opt,name=state,proto3,enum=looprpc.SwapState" json:"state,omitempty"`
	//
	//A failure reason for the swap, only set if the swap has failed.
	FailureReason FailureReason `` /* 129-byte string literal not displayed */
	//
	//Initiation time of the swap.
	InitiationTime int64 `protobuf:"varint,5,opt,name=initiation_time,json=initiationTime,proto3" json:"initiation_time,omitempty"`
	//
	//Initiation time of the swap.
	LastUpdateTime int64 `protobuf:"varint,6,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
	//
	//DEPRECATED:  This field stores the address of the onchain htlc.
	//- For internal loop-in htlc_address contains the address of the
	//native segwit (P2WSH) htlc.
	//- For external loop-in htlc_address contains the nested segwit (NP2WSH)
	//address.
	//- For loop-out htlc_address always contains the native segwit (P2WSH)
	//htlc address.
	//
	// Deprecated: Do not use.
	HtlcAddress string `protobuf:"bytes,7,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"`
	// HTLC address (native segwit), used in loop-in and loop-out swaps.
	HtlcAddressP2Wsh string `protobuf:"bytes,12,opt,name=htlc_address_p2wsh,json=htlcAddressP2wsh,proto3" json:"htlc_address_p2wsh,omitempty"`
	// HTLC address (nested segwit), used in loop-in swaps only.
	HtlcAddressNp2Wsh string `protobuf:"bytes,13,opt,name=htlc_address_np2wsh,json=htlcAddressNp2wsh,proto3" json:"htlc_address_np2wsh,omitempty"`
	// Swap server cost
	CostServer int64 `protobuf:"varint,8,opt,name=cost_server,json=costServer,proto3" json:"cost_server,omitempty"`
	// On-chain transaction cost
	CostOnchain int64 `protobuf:"varint,9,opt,name=cost_onchain,json=costOnchain,proto3" json:"cost_onchain,omitempty"`
	// Off-chain routing fees
	CostOffchain int64 `protobuf:"varint,10,opt,name=cost_offchain,json=costOffchain,proto3" json:"cost_offchain,omitempty"`
	// An optional label given to the swap on creation.
	Label string `protobuf:"bytes,15,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapStatus) Descriptor deprecated

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

Deprecated: Use SwapStatus.ProtoReflect.Descriptor instead.

func (*SwapStatus) GetAmt

func (x *SwapStatus) GetAmt() int64

func (*SwapStatus) GetCostOffchain

func (x *SwapStatus) GetCostOffchain() int64

func (*SwapStatus) GetCostOnchain

func (x *SwapStatus) GetCostOnchain() int64

func (*SwapStatus) GetCostServer

func (x *SwapStatus) GetCostServer() int64

func (*SwapStatus) GetFailureReason

func (x *SwapStatus) GetFailureReason() FailureReason

func (*SwapStatus) GetHtlcAddress deprecated

func (x *SwapStatus) GetHtlcAddress() string

Deprecated: Do not use.

func (*SwapStatus) GetHtlcAddressNp2Wsh

func (x *SwapStatus) GetHtlcAddressNp2Wsh() string

func (*SwapStatus) GetHtlcAddressP2Wsh

func (x *SwapStatus) GetHtlcAddressP2Wsh() string

func (*SwapStatus) GetId deprecated

func (x *SwapStatus) GetId() string

Deprecated: Do not use.

func (*SwapStatus) GetIdBytes

func (x *SwapStatus) GetIdBytes() []byte

func (*SwapStatus) GetInitiationTime

func (x *SwapStatus) GetInitiationTime() int64

func (*SwapStatus) GetLabel

func (x *SwapStatus) GetLabel() string

func (*SwapStatus) GetLastUpdateTime

func (x *SwapStatus) GetLastUpdateTime() int64

func (*SwapStatus) GetState

func (x *SwapStatus) GetState() SwapState

func (*SwapStatus) GetType

func (x *SwapStatus) GetType() SwapType

func (*SwapStatus) ProtoMessage

func (*SwapStatus) ProtoMessage()

func (*SwapStatus) ProtoReflect

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

func (*SwapStatus) Reset

func (x *SwapStatus) Reset()

func (*SwapStatus) String

func (x *SwapStatus) String() string

type SwapType

type SwapType int32
const (
	// LOOP_OUT indicates an loop out swap (off-chain to on-chain)
	SwapType_LOOP_OUT SwapType = 0
	// LOOP_IN indicates a loop in swap (on-chain to off-chain)
	SwapType_LOOP_IN SwapType = 1
)

func (SwapType) Descriptor

func (SwapType) Descriptor() protoreflect.EnumDescriptor

func (SwapType) Enum

func (x SwapType) Enum() *SwapType

func (SwapType) EnumDescriptor deprecated

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

Deprecated: Use SwapType.Descriptor instead.

func (SwapType) Number

func (x SwapType) Number() protoreflect.EnumNumber

func (SwapType) String

func (x SwapType) String() string

func (SwapType) Type

type TermsRequest

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

func (*TermsRequest) Descriptor deprecated

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

Deprecated: Use TermsRequest.ProtoReflect.Descriptor instead.

func (*TermsRequest) ProtoMessage

func (*TermsRequest) ProtoMessage()

func (*TermsRequest) ProtoReflect

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

func (*TermsRequest) Reset

func (x *TermsRequest) Reset()

func (*TermsRequest) String

func (x *TermsRequest) String() string

type TokensRequest

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

func (*TokensRequest) Descriptor deprecated

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

Deprecated: Use TokensRequest.ProtoReflect.Descriptor instead.

func (*TokensRequest) ProtoMessage

func (*TokensRequest) ProtoMessage()

func (*TokensRequest) ProtoReflect

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

func (*TokensRequest) Reset

func (x *TokensRequest) Reset()

func (*TokensRequest) String

func (x *TokensRequest) String() string

type TokensResponse

type TokensResponse struct {

	//
	//List of all tokens the daemon knows of, including old/expired tokens.
	Tokens []*LsatToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*TokensResponse) Descriptor deprecated

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

Deprecated: Use TokensResponse.ProtoReflect.Descriptor instead.

func (*TokensResponse) GetTokens

func (x *TokensResponse) GetTokens() []*LsatToken

func (*TokensResponse) ProtoMessage

func (*TokensResponse) ProtoMessage()

func (*TokensResponse) ProtoReflect

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

func (*TokensResponse) Reset

func (x *TokensResponse) Reset()

func (*TokensResponse) String

func (x *TokensResponse) String() string

type UnimplementedDebugServer

type UnimplementedDebugServer struct {
}

UnimplementedDebugServer can be embedded to have forward compatible implementations.

func (*UnimplementedDebugServer) ForceAutoLoop

type UnimplementedSwapClientServer

type UnimplementedSwapClientServer struct {
}

UnimplementedSwapClientServer can be embedded to have forward compatible implementations.

func (*UnimplementedSwapClientServer) GetLiquidityParams

func (*UnimplementedSwapClientServer) GetLoopInQuote

func (*UnimplementedSwapClientServer) GetLoopInTerms

func (*UnimplementedSwapClientServer) GetLsatTokens

func (*UnimplementedSwapClientServer) ListSwaps

func (*UnimplementedSwapClientServer) LoopIn

func (*UnimplementedSwapClientServer) LoopOut

func (*UnimplementedSwapClientServer) LoopOutQuote

func (*UnimplementedSwapClientServer) LoopOutTerms

func (*UnimplementedSwapClientServer) Monitor

func (*UnimplementedSwapClientServer) SetLiquidityParams

func (*UnimplementedSwapClientServer) SuggestSwaps

func (*UnimplementedSwapClientServer) SwapInfo

type UnimplementedSwapServerServer

type UnimplementedSwapServerServer struct {
}

UnimplementedSwapServerServer can be embedded to have forward compatible implementations.

func (*UnimplementedSwapServerServer) CancelLoopOutSwap

func (*UnimplementedSwapServerServer) LoopInQuote

func (*UnimplementedSwapServerServer) LoopInTerms

func (*UnimplementedSwapServerServer) LoopOutQuote

func (*UnimplementedSwapServerServer) LoopOutTerms

func (*UnimplementedSwapServerServer) NewLoopInSwap

func (*UnimplementedSwapServerServer) NewLoopOutSwap

Jump to

Keyboard shortcuts

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