Documentation ¶
Overview ¶
Package looprpc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterDebugServer(s grpc.ServiceRegistrar, srv DebugServer)
- func RegisterSwapClientHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSwapClientHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SwapClientClient) error
- func RegisterSwapClientHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSwapClientHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SwapClientServer) error
- func RegisterSwapClientJSONCallbacks(...)
- func RegisterSwapClientServer(s grpc.ServiceRegistrar, srv SwapClientServer)
- type AbandonSwapRequest
- func (*AbandonSwapRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AbandonSwapRequest) GetIKnowWhatIAmDoing() bool
- func (x *AbandonSwapRequest) GetId() []byte
- func (*AbandonSwapRequest) ProtoMessage()
- func (x *AbandonSwapRequest) ProtoReflect() protoreflect.Message
- func (x *AbandonSwapRequest) Reset()
- func (x *AbandonSwapRequest) String() string
- type AbandonSwapResponse
- type AddressType
- func (AddressType) Descriptor() protoreflect.EnumDescriptor
- func (x AddressType) Enum() *AddressType
- func (AddressType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AddressType) Number() protoreflect.EnumNumber
- func (x AddressType) String() string
- func (AddressType) Type() protoreflect.EnumType
- type AutoReason
- type ClientReservation
- func (*ClientReservation) Descriptor() ([]byte, []int)deprecated
- func (x *ClientReservation) GetAmount() uint64
- func (x *ClientReservation) GetExpiry() uint32
- func (x *ClientReservation) GetReservationId() []byte
- func (x *ClientReservation) GetState() string
- func (x *ClientReservation) GetTxId() string
- func (x *ClientReservation) GetVout() uint32
- func (*ClientReservation) ProtoMessage()
- func (x *ClientReservation) ProtoReflect() protoreflect.Message
- func (x *ClientReservation) Reset()
- func (x *ClientReservation) String() string
- type DebugClient
- type DebugServer
- type Disqualified
- func (*Disqualified) Descriptor() ([]byte, []int)deprecated
- func (x *Disqualified) GetChannelId() uint64
- func (x *Disqualified) GetPubkey() []byte
- func (x *Disqualified) GetReason() AutoReason
- func (*Disqualified) ProtoMessage()
- func (x *Disqualified) ProtoReflect() protoreflect.Message
- func (x *Disqualified) Reset()
- func (x *Disqualified) String() string
- type FailureReason
- func (FailureReason) Descriptor() protoreflect.EnumDescriptor
- func (x FailureReason) Enum() *FailureReason
- func (FailureReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x FailureReason) Number() protoreflect.EnumNumber
- func (x FailureReason) String() string
- func (FailureReason) Type() protoreflect.EnumType
- type ForceAutoLoopRequest
- type ForceAutoLoopResponse
- type GetInfoRequest
- type GetInfoResponse
- func (*GetInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInfoResponse) GetLoopInStats() *LoopStats
- func (x *GetInfoResponse) GetLoopOutStats() *LoopStats
- func (x *GetInfoResponse) GetMacaroonPath() string
- func (x *GetInfoResponse) GetNetwork() string
- func (x *GetInfoResponse) GetRestListen() string
- func (x *GetInfoResponse) GetRpcListen() string
- func (x *GetInfoResponse) GetTlsCertPath() string
- func (x *GetInfoResponse) GetVersion() string
- func (*GetInfoResponse) ProtoMessage()
- func (x *GetInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetInfoResponse) Reset()
- func (x *GetInfoResponse) String() string
- type GetLiquidityParamsRequest
- type InQuoteResponse
- func (*InQuoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InQuoteResponse) GetCltvDelta() int32
- func (x *InQuoteResponse) GetConfTarget() int32
- func (x *InQuoteResponse) GetHtlcPublishFeeSat() int64
- func (x *InQuoteResponse) GetSwapFeeSat() int64
- func (*InQuoteResponse) ProtoMessage()
- func (x *InQuoteResponse) ProtoReflect() protoreflect.Message
- func (x *InQuoteResponse) Reset()
- func (x *InQuoteResponse) String() string
- type InTermsResponse
- func (*InTermsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InTermsResponse) GetMaxSwapAmount() int64
- func (x *InTermsResponse) GetMinSwapAmount() int64
- func (*InTermsResponse) ProtoMessage()
- func (x *InTermsResponse) ProtoReflect() protoreflect.Message
- func (x *InTermsResponse) Reset()
- func (x *InTermsResponse) String() string
- type InstantOut
- func (*InstantOut) Descriptor() ([]byte, []int)deprecated
- func (x *InstantOut) GetAmount() uint64
- func (x *InstantOut) GetReservationIds() [][]byte
- func (x *InstantOut) GetState() string
- func (x *InstantOut) GetSwapHash() []byte
- func (x *InstantOut) GetSweepTxId() string
- func (*InstantOut) ProtoMessage()
- func (x *InstantOut) ProtoReflect() protoreflect.Message
- func (x *InstantOut) Reset()
- func (x *InstantOut) String() string
- type InstantOutQuoteRequest
- func (*InstantOutQuoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InstantOutQuoteRequest) GetAmt() uint64
- func (x *InstantOutQuoteRequest) GetNumReservations() int32
- func (*InstantOutQuoteRequest) ProtoMessage()
- func (x *InstantOutQuoteRequest) ProtoReflect() protoreflect.Message
- func (x *InstantOutQuoteRequest) Reset()
- func (x *InstantOutQuoteRequest) String() string
- type InstantOutQuoteResponse
- func (*InstantOutQuoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InstantOutQuoteResponse) GetServiceFeeSat() int64
- func (x *InstantOutQuoteResponse) GetSweepFeeSat() int64
- func (*InstantOutQuoteResponse) ProtoMessage()
- func (x *InstantOutQuoteResponse) ProtoReflect() protoreflect.Message
- func (x *InstantOutQuoteResponse) Reset()
- func (x *InstantOutQuoteResponse) String() string
- type InstantOutRequest
- func (*InstantOutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InstantOutRequest) GetDestAddr() string
- func (x *InstantOutRequest) GetOutgoingChanSet() []uint64
- func (x *InstantOutRequest) GetReservationIds() [][]byte
- func (*InstantOutRequest) ProtoMessage()
- func (x *InstantOutRequest) ProtoReflect() protoreflect.Message
- func (x *InstantOutRequest) Reset()
- func (x *InstantOutRequest) String() string
- type InstantOutResponse
- func (*InstantOutResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InstantOutResponse) GetInstantOutHash() []byte
- func (x *InstantOutResponse) GetState() string
- func (x *InstantOutResponse) GetSweepTxId() string
- func (*InstantOutResponse) ProtoMessage()
- func (x *InstantOutResponse) ProtoReflect() protoreflect.Message
- func (x *InstantOutResponse) Reset()
- func (x *InstantOutResponse) String() string
- type L402Token
- func (*L402Token) Descriptor() ([]byte, []int)deprecated
- func (x *L402Token) GetAmountPaidMsat() int64
- func (x *L402Token) GetBaseMacaroon() []byte
- func (x *L402Token) GetExpired() bool
- func (x *L402Token) GetId() string
- func (x *L402Token) GetPaymentHash() []byte
- func (x *L402Token) GetPaymentPreimage() []byte
- func (x *L402Token) GetRoutingFeePaidMsat() int64
- func (x *L402Token) GetStorageName() string
- func (x *L402Token) GetTimeCreated() int64
- func (*L402Token) ProtoMessage()
- func (x *L402Token) ProtoReflect() protoreflect.Message
- func (x *L402Token) Reset()
- func (x *L402Token) String() string
- type LiquidityParameters
- func (*LiquidityParameters) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityParameters) GetAccount() string
- func (x *LiquidityParameters) GetAccountAddrType() AddressType
- func (x *LiquidityParameters) GetAutoMaxInFlight() uint64
- func (x *LiquidityParameters) GetAutoloop() bool
- func (x *LiquidityParameters) GetAutoloopBudgetLastRefresh() uint64
- func (x *LiquidityParameters) GetAutoloopBudgetRefreshPeriodSec() uint64
- func (x *LiquidityParameters) GetAutoloopBudgetSat() uint64
- func (x *LiquidityParameters) GetAutoloopBudgetStartSec() uint64deprecated
- func (x *LiquidityParameters) GetAutoloopDestAddress() string
- func (x *LiquidityParameters) GetEasyAutoloop() bool
- func (x *LiquidityParameters) GetEasyAutoloopLocalTargetSat() uint64
- func (x *LiquidityParameters) GetFailureBackoffSec() uint64
- func (x *LiquidityParameters) GetFeePpm() uint64
- func (x *LiquidityParameters) GetHtlcConfTarget() int32
- func (x *LiquidityParameters) GetMaxMinerFeeSat() uint64
- func (x *LiquidityParameters) GetMaxPrepayRoutingFeePpm() uint64
- func (x *LiquidityParameters) GetMaxPrepaySat() uint64
- func (x *LiquidityParameters) GetMaxRoutingFeePpm() uint64
- func (x *LiquidityParameters) GetMaxSwapAmount() uint64
- func (x *LiquidityParameters) GetMaxSwapFeePpm() uint64
- func (x *LiquidityParameters) GetMinSwapAmount() uint64
- func (x *LiquidityParameters) GetRules() []*LiquidityRule
- func (x *LiquidityParameters) GetSweepConfTarget() int32
- func (x *LiquidityParameters) GetSweepFeeRateSatPerVbyte() uint64
- func (*LiquidityParameters) ProtoMessage()
- func (x *LiquidityParameters) ProtoReflect() protoreflect.Message
- func (x *LiquidityParameters) Reset()
- func (x *LiquidityParameters) String() string
- type LiquidityRule
- func (*LiquidityRule) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityRule) GetChannelId() uint64
- func (x *LiquidityRule) GetIncomingThreshold() uint32
- func (x *LiquidityRule) GetOutgoingThreshold() uint32
- func (x *LiquidityRule) GetPubkey() []byte
- func (x *LiquidityRule) GetSwapType() SwapType
- func (x *LiquidityRule) GetType() LiquidityRuleType
- func (*LiquidityRule) ProtoMessage()
- func (x *LiquidityRule) ProtoReflect() protoreflect.Message
- func (x *LiquidityRule) Reset()
- func (x *LiquidityRule) String() string
- type LiquidityRuleType
- func (LiquidityRuleType) Descriptor() protoreflect.EnumDescriptor
- func (x LiquidityRuleType) Enum() *LiquidityRuleType
- func (LiquidityRuleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x LiquidityRuleType) Number() protoreflect.EnumNumber
- func (x LiquidityRuleType) String() string
- func (LiquidityRuleType) Type() protoreflect.EnumType
- type ListInstantOutsRequest
- type ListInstantOutsResponse
- func (*ListInstantOutsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListInstantOutsResponse) GetSwaps() []*InstantOut
- func (*ListInstantOutsResponse) ProtoMessage()
- func (x *ListInstantOutsResponse) ProtoReflect() protoreflect.Message
- func (x *ListInstantOutsResponse) Reset()
- func (x *ListInstantOutsResponse) String() string
- type ListReservationsRequest
- type ListReservationsResponse
- func (*ListReservationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListReservationsResponse) GetReservations() []*ClientReservation
- func (*ListReservationsResponse) ProtoMessage()
- func (x *ListReservationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListReservationsResponse) Reset()
- func (x *ListReservationsResponse) String() string
- type ListSwapsFilter
- func (*ListSwapsFilter) Descriptor() ([]byte, []int)deprecated
- func (x *ListSwapsFilter) GetLabel() string
- func (x *ListSwapsFilter) GetLoopInLastHop() []byte
- func (x *ListSwapsFilter) GetOutgoingChanSet() []uint64
- func (x *ListSwapsFilter) GetPendingOnly() bool
- func (x *ListSwapsFilter) GetSwapType() ListSwapsFilter_SwapTypeFilter
- func (*ListSwapsFilter) ProtoMessage()
- func (x *ListSwapsFilter) ProtoReflect() protoreflect.Message
- func (x *ListSwapsFilter) Reset()
- func (x *ListSwapsFilter) String() string
- type ListSwapsFilter_SwapTypeFilter
- func (ListSwapsFilter_SwapTypeFilter) Descriptor() protoreflect.EnumDescriptor
- func (x ListSwapsFilter_SwapTypeFilter) Enum() *ListSwapsFilter_SwapTypeFilter
- func (ListSwapsFilter_SwapTypeFilter) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListSwapsFilter_SwapTypeFilter) Number() protoreflect.EnumNumber
- func (x ListSwapsFilter_SwapTypeFilter) String() string
- func (ListSwapsFilter_SwapTypeFilter) Type() protoreflect.EnumType
- type ListSwapsRequest
- func (*ListSwapsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSwapsRequest) GetListSwapFilter() *ListSwapsFilter
- func (*ListSwapsRequest) ProtoMessage()
- func (x *ListSwapsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSwapsRequest) Reset()
- func (x *ListSwapsRequest) String() string
- type ListSwapsResponse
- func (*ListSwapsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSwapsResponse) GetSwaps() []*SwapStatus
- func (*ListSwapsResponse) ProtoMessage()
- func (x *ListSwapsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSwapsResponse) Reset()
- func (x *ListSwapsResponse) String() string
- type LoopInRequest
- func (*LoopInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoopInRequest) GetAmt() int64
- func (x *LoopInRequest) GetExternalHtlc() bool
- func (x *LoopInRequest) GetHtlcConfTarget() int32
- func (x *LoopInRequest) GetInitiator() string
- func (x *LoopInRequest) GetLabel() string
- func (x *LoopInRequest) GetLastHop() []byte
- func (x *LoopInRequest) GetMaxMinerFee() int64
- func (x *LoopInRequest) GetMaxSwapFee() int64
- func (x *LoopInRequest) GetPrivate() bool
- func (x *LoopInRequest) GetRouteHints() []*swapserverrpc.RouteHint
- func (*LoopInRequest) ProtoMessage()
- func (x *LoopInRequest) ProtoReflect() protoreflect.Message
- func (x *LoopInRequest) Reset()
- func (x *LoopInRequest) String() string
- type LoopOutRequest
- func (*LoopOutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoopOutRequest) GetAccount() string
- func (x *LoopOutRequest) GetAccountAddrType() AddressType
- func (x *LoopOutRequest) GetAmt() int64
- func (x *LoopOutRequest) GetDest() string
- func (x *LoopOutRequest) GetHtlcConfirmations() int32
- func (x *LoopOutRequest) GetInitiator() string
- func (x *LoopOutRequest) GetIsExternalAddr() bool
- func (x *LoopOutRequest) GetLabel() string
- func (x *LoopOutRequest) GetLoopOutChannel() uint64deprecated
- func (x *LoopOutRequest) GetMaxMinerFee() int64
- func (x *LoopOutRequest) GetMaxPrepayAmt() int64
- func (x *LoopOutRequest) GetMaxPrepayRoutingFee() int64
- func (x *LoopOutRequest) GetMaxSwapFee() int64
- func (x *LoopOutRequest) GetMaxSwapRoutingFee() int64
- func (x *LoopOutRequest) GetOutgoingChanSet() []uint64
- func (x *LoopOutRequest) GetPaymentTimeout() uint32
- func (x *LoopOutRequest) GetReservationIds() [][]byte
- func (x *LoopOutRequest) GetSwapPublicationDeadline() uint64
- func (x *LoopOutRequest) GetSweepConfTarget() int32
- func (*LoopOutRequest) ProtoMessage()
- func (x *LoopOutRequest) ProtoReflect() protoreflect.Message
- func (x *LoopOutRequest) Reset()
- func (x *LoopOutRequest) String() string
- type LoopStats
- func (*LoopStats) Descriptor() ([]byte, []int)deprecated
- func (x *LoopStats) GetFailCount() uint64
- func (x *LoopStats) GetPendingCount() uint64
- func (x *LoopStats) GetSuccessCount() uint64
- func (x *LoopStats) GetSumPendingAmt() int64
- func (x *LoopStats) GetSumSucceededAmt() int64
- func (*LoopStats) ProtoMessage()
- func (x *LoopStats) ProtoReflect() protoreflect.Message
- func (x *LoopStats) Reset()
- func (x *LoopStats) String() string
- type MonitorRequest
- type OutQuoteResponse
- func (*OutQuoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OutQuoteResponse) GetCltvDelta() int32
- func (x *OutQuoteResponse) GetConfTarget() int32
- func (x *OutQuoteResponse) GetHtlcSweepFeeSat() int64
- func (x *OutQuoteResponse) GetPrepayAmtSat() int64
- func (x *OutQuoteResponse) GetSwapFeeSat() int64
- func (x *OutQuoteResponse) GetSwapPaymentDest() []byte
- func (*OutQuoteResponse) ProtoMessage()
- func (x *OutQuoteResponse) ProtoReflect() protoreflect.Message
- func (x *OutQuoteResponse) Reset()
- func (x *OutQuoteResponse) String() string
- type OutTermsResponse
- func (*OutTermsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OutTermsResponse) GetMaxCltvDelta() int32
- func (x *OutTermsResponse) GetMaxSwapAmount() int64
- func (x *OutTermsResponse) GetMinCltvDelta() int32
- func (x *OutTermsResponse) GetMinSwapAmount() int64
- func (*OutTermsResponse) ProtoMessage()
- func (x *OutTermsResponse) ProtoReflect() protoreflect.Message
- func (x *OutTermsResponse) Reset()
- func (x *OutTermsResponse) String() string
- type ProbeRequest
- func (*ProbeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeRequest) GetAmt() int64
- func (x *ProbeRequest) GetLastHop() []byte
- func (x *ProbeRequest) GetRouteHints() []*swapserverrpc.RouteHint
- func (*ProbeRequest) ProtoMessage()
- func (x *ProbeRequest) ProtoReflect() protoreflect.Message
- func (x *ProbeRequest) Reset()
- func (x *ProbeRequest) String() string
- type ProbeResponse
- type QuoteRequest
- func (*QuoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuoteRequest) GetAmt() int64
- func (x *QuoteRequest) GetConfTarget() int32
- func (x *QuoteRequest) GetExternalHtlc() bool
- func (x *QuoteRequest) GetLoopInLastHop() []byte
- func (x *QuoteRequest) GetLoopInRouteHints() []*swapserverrpc.RouteHint
- func (x *QuoteRequest) GetPrivate() bool
- func (x *QuoteRequest) GetSwapPublicationDeadline() uint64
- func (*QuoteRequest) ProtoMessage()
- func (x *QuoteRequest) ProtoReflect() protoreflect.Message
- func (x *QuoteRequest) Reset()
- func (x *QuoteRequest) String() string
- type SetLiquidityParamsRequest
- func (*SetLiquidityParamsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetLiquidityParamsRequest) GetParameters() *LiquidityParameters
- func (*SetLiquidityParamsRequest) ProtoMessage()
- func (x *SetLiquidityParamsRequest) ProtoReflect() protoreflect.Message
- func (x *SetLiquidityParamsRequest) Reset()
- func (x *SetLiquidityParamsRequest) String() string
- type SetLiquidityParamsResponse
- type SuggestSwapsRequest
- type SuggestSwapsResponse
- func (*SuggestSwapsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SuggestSwapsResponse) GetDisqualified() []*Disqualified
- func (x *SuggestSwapsResponse) GetLoopIn() []*LoopInRequest
- func (x *SuggestSwapsResponse) GetLoopOut() []*LoopOutRequest
- func (*SuggestSwapsResponse) ProtoMessage()
- func (x *SuggestSwapsResponse) ProtoReflect() protoreflect.Message
- func (x *SuggestSwapsResponse) Reset()
- func (x *SuggestSwapsResponse) String() string
- type SwapClientClient
- type SwapClientServer
- type SwapClient_MonitorClient
- type SwapClient_MonitorServer
- type SwapInfoRequest
- type SwapResponse
- func (*SwapResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SwapResponse) GetHtlcAddress() stringdeprecated
- func (x *SwapResponse) GetHtlcAddressP2Tr() string
- func (x *SwapResponse) GetHtlcAddressP2Wsh() string
- func (x *SwapResponse) GetId() stringdeprecated
- func (x *SwapResponse) GetIdBytes() []byte
- func (x *SwapResponse) GetServerMessage() string
- func (*SwapResponse) ProtoMessage()
- func (x *SwapResponse) ProtoReflect() protoreflect.Message
- func (x *SwapResponse) Reset()
- func (x *SwapResponse) String() string
- type SwapState
- type SwapStatus
- func (*SwapStatus) Descriptor() ([]byte, []int)deprecated
- func (x *SwapStatus) GetAmt() int64
- func (x *SwapStatus) GetCostOffchain() int64
- func (x *SwapStatus) GetCostOnchain() int64
- func (x *SwapStatus) GetCostServer() int64
- func (x *SwapStatus) GetFailureReason() FailureReason
- func (x *SwapStatus) GetHtlcAddress() stringdeprecated
- func (x *SwapStatus) GetHtlcAddressP2Tr() string
- func (x *SwapStatus) GetHtlcAddressP2Wsh() string
- func (x *SwapStatus) GetId() stringdeprecated
- func (x *SwapStatus) GetIdBytes() []byte
- func (x *SwapStatus) GetInitiationTime() int64
- func (x *SwapStatus) GetLabel() string
- func (x *SwapStatus) GetLastHop() []byte
- func (x *SwapStatus) GetLastUpdateTime() int64
- func (x *SwapStatus) GetOutgoingChanSet() []uint64
- func (x *SwapStatus) GetState() SwapState
- func (x *SwapStatus) GetType() SwapType
- func (*SwapStatus) ProtoMessage()
- func (x *SwapStatus) ProtoReflect() protoreflect.Message
- func (x *SwapStatus) Reset()
- func (x *SwapStatus) String() string
- type SwapType
- type TermsRequest
- type TokensRequest
- type TokensResponse
- type UnimplementedDebugServer
- type UnimplementedSwapClientServer
- func (UnimplementedSwapClientServer) AbandonSwap(context.Context, *AbandonSwapRequest) (*AbandonSwapResponse, error)
- func (UnimplementedSwapClientServer) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
- func (UnimplementedSwapClientServer) GetL402Tokens(context.Context, *TokensRequest) (*TokensResponse, error)
- func (UnimplementedSwapClientServer) GetLiquidityParams(context.Context, *GetLiquidityParamsRequest) (*LiquidityParameters, error)
- func (UnimplementedSwapClientServer) GetLoopInQuote(context.Context, *QuoteRequest) (*InQuoteResponse, error)
- func (UnimplementedSwapClientServer) GetLoopInTerms(context.Context, *TermsRequest) (*InTermsResponse, error)
- func (UnimplementedSwapClientServer) GetLsatTokens(context.Context, *TokensRequest) (*TokensResponse, error)
- func (UnimplementedSwapClientServer) InstantOut(context.Context, *InstantOutRequest) (*InstantOutResponse, error)
- func (UnimplementedSwapClientServer) InstantOutQuote(context.Context, *InstantOutQuoteRequest) (*InstantOutQuoteResponse, error)
- func (UnimplementedSwapClientServer) ListInstantOuts(context.Context, *ListInstantOutsRequest) (*ListInstantOutsResponse, error)
- func (UnimplementedSwapClientServer) ListReservations(context.Context, *ListReservationsRequest) (*ListReservationsResponse, error)
- func (UnimplementedSwapClientServer) ListSwaps(context.Context, *ListSwapsRequest) (*ListSwapsResponse, error)
- func (UnimplementedSwapClientServer) LoopIn(context.Context, *LoopInRequest) (*SwapResponse, error)
- func (UnimplementedSwapClientServer) LoopOut(context.Context, *LoopOutRequest) (*SwapResponse, error)
- func (UnimplementedSwapClientServer) LoopOutQuote(context.Context, *QuoteRequest) (*OutQuoteResponse, error)
- func (UnimplementedSwapClientServer) LoopOutTerms(context.Context, *TermsRequest) (*OutTermsResponse, error)
- func (UnimplementedSwapClientServer) Monitor(*MonitorRequest, SwapClient_MonitorServer) error
- func (UnimplementedSwapClientServer) Probe(context.Context, *ProbeRequest) (*ProbeResponse, error)
- func (UnimplementedSwapClientServer) SetLiquidityParams(context.Context, *SetLiquidityParamsRequest) (*SetLiquidityParamsResponse, error)
- func (UnimplementedSwapClientServer) SuggestSwaps(context.Context, *SuggestSwapsRequest) (*SuggestSwapsResponse, error)
- func (UnimplementedSwapClientServer) SwapInfo(context.Context, *SwapInfoRequest) (*SwapStatus, error)
- type UnsafeDebugServer
- type UnsafeSwapClientServer
Constants ¶
This section is empty.
Variables ¶
var ( AddressType_name = map[int32]string{ 0: "ADDRESS_TYPE_UNKNOWN", 1: "TAPROOT_PUBKEY", } AddressType_value = map[string]int32{ "ADDRESS_TYPE_UNKNOWN": 0, "TAPROOT_PUBKEY": 1, } )
Enum value maps for AddressType.
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.
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.
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", 7: "FAILURE_REASON_ABANDONED", 8: "FAILURE_REASON_INSUFFICIENT_CONFIRMED_BALANCE", 9: "FAILURE_REASON_INCORRECT_HTLC_AMT_SWEPT", } 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, "FAILURE_REASON_ABANDONED": 7, "FAILURE_REASON_INSUFFICIENT_CONFIRMED_BALANCE": 8, "FAILURE_REASON_INCORRECT_HTLC_AMT_SWEPT": 9, } )
Enum value maps for FailureReason.
var ( LiquidityRuleType_name = map[int32]string{ 0: "UNKNOWN", 1: "THRESHOLD", } LiquidityRuleType_value = map[string]int32{ "UNKNOWN": 0, "THRESHOLD": 1, } )
Enum value maps for LiquidityRuleType.
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.
var ( ListSwapsFilter_SwapTypeFilter_name = map[int32]string{ 0: "ANY", 1: "LOOP_OUT", 2: "LOOP_IN", } ListSwapsFilter_SwapTypeFilter_value = map[string]int32{ "ANY": 0, "LOOP_OUT": 1, "LOOP_IN": 2, } )
Enum value maps for ListSwapsFilter_SwapTypeFilter.
var Debug_ServiceDesc = grpc.ServiceDesc{ ServiceName: "looprpc.Debug", HandlerType: (*DebugServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ForceAutoLoop", Handler: _Debug_ForceAutoLoop_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "debug.proto", }
Debug_ServiceDesc is the grpc.ServiceDesc for Debug service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_client_proto protoreflect.FileDescriptor
var File_debug_proto protoreflect.FileDescriptor
var SwapClient_ServiceDesc = grpc.ServiceDesc{ ServiceName: "looprpc.SwapClient", HandlerType: (*SwapClientServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LoopOut", Handler: _SwapClient_LoopOut_Handler, }, { MethodName: "LoopIn", Handler: _SwapClient_LoopIn_Handler, }, { MethodName: "ListSwaps", Handler: _SwapClient_ListSwaps_Handler, }, { MethodName: "SwapInfo", Handler: _SwapClient_SwapInfo_Handler, }, { MethodName: "AbandonSwap", Handler: _SwapClient_AbandonSwap_Handler, }, { MethodName: "LoopOutTerms", Handler: _SwapClient_LoopOutTerms_Handler, }, { MethodName: "LoopOutQuote", Handler: _SwapClient_LoopOutQuote_Handler, }, { MethodName: "GetLoopInTerms", Handler: _SwapClient_GetLoopInTerms_Handler, }, { MethodName: "GetLoopInQuote", Handler: _SwapClient_GetLoopInQuote_Handler, }, { MethodName: "Probe", Handler: _SwapClient_Probe_Handler, }, { MethodName: "GetL402Tokens", Handler: _SwapClient_GetL402Tokens_Handler, }, { MethodName: "GetLsatTokens", Handler: _SwapClient_GetLsatTokens_Handler, }, { MethodName: "GetInfo", Handler: _SwapClient_GetInfo_Handler, }, { MethodName: "GetLiquidityParams", Handler: _SwapClient_GetLiquidityParams_Handler, }, { MethodName: "SetLiquidityParams", Handler: _SwapClient_SetLiquidityParams_Handler, }, { MethodName: "SuggestSwaps", Handler: _SwapClient_SuggestSwaps_Handler, }, { MethodName: "ListReservations", Handler: _SwapClient_ListReservations_Handler, }, { MethodName: "InstantOut", Handler: _SwapClient_InstantOut_Handler, }, { MethodName: "InstantOutQuote", Handler: _SwapClient_InstantOutQuote_Handler, }, { MethodName: "ListInstantOuts", Handler: _SwapClient_ListInstantOuts_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Monitor", Handler: _SwapClient_Monitor_Handler, ServerStreams: true, }, }, Metadata: "client.proto", }
SwapClient_ServiceDesc is the grpc.ServiceDesc for SwapClient service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterDebugServer ¶
func RegisterDebugServer(s grpc.ServiceRegistrar, 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. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSwapClientHandlerFromEndpoint instead.
func RegisterSwapClientServer ¶
func RegisterSwapClientServer(s grpc.ServiceRegistrar, srv SwapClientServer)
Types ¶
type AbandonSwapRequest ¶
type AbandonSwapRequest 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"` // A flag that tries to ensure that the client understands that they are // risking loss of funds by abandoning a swap. This could happen if an // abandoned swap would wait on a timeout sweep by the client. IKnowWhatIAmDoing bool `protobuf:"varint,2,opt,name=i_know_what_i_am_doing,json=iKnowWhatIAmDoing,proto3" json:"i_know_what_i_am_doing,omitempty"` // contains filtered or unexported fields }
func (*AbandonSwapRequest) Descriptor
deprecated
func (*AbandonSwapRequest) Descriptor() ([]byte, []int)
Deprecated: Use AbandonSwapRequest.ProtoReflect.Descriptor instead.
func (*AbandonSwapRequest) GetIKnowWhatIAmDoing ¶
func (x *AbandonSwapRequest) GetIKnowWhatIAmDoing() bool
func (*AbandonSwapRequest) GetId ¶
func (x *AbandonSwapRequest) GetId() []byte
func (*AbandonSwapRequest) ProtoMessage ¶
func (*AbandonSwapRequest) ProtoMessage()
func (*AbandonSwapRequest) ProtoReflect ¶
func (x *AbandonSwapRequest) ProtoReflect() protoreflect.Message
func (*AbandonSwapRequest) Reset ¶
func (x *AbandonSwapRequest) Reset()
func (*AbandonSwapRequest) String ¶
func (x *AbandonSwapRequest) String() string
type AbandonSwapResponse ¶
type AbandonSwapResponse struct {
// contains filtered or unexported fields
}
func (*AbandonSwapResponse) Descriptor
deprecated
func (*AbandonSwapResponse) Descriptor() ([]byte, []int)
Deprecated: Use AbandonSwapResponse.ProtoReflect.Descriptor instead.
func (*AbandonSwapResponse) ProtoMessage ¶
func (*AbandonSwapResponse) ProtoMessage()
func (*AbandonSwapResponse) ProtoReflect ¶
func (x *AbandonSwapResponse) ProtoReflect() protoreflect.Message
func (*AbandonSwapResponse) Reset ¶
func (x *AbandonSwapResponse) Reset()
func (*AbandonSwapResponse) String ¶
func (x *AbandonSwapResponse) String() string
type AddressType ¶
type AddressType int32
`AddressType` has to be one of:
- `unknown`: Unknown address type - `p2tr`: Pay to taproot pubkey (`TAPROOT_PUBKEY` = 1)
const ( AddressType_ADDRESS_TYPE_UNKNOWN AddressType = 0 AddressType_TAPROOT_PUBKEY AddressType = 1 )
func (AddressType) Descriptor ¶
func (AddressType) Descriptor() protoreflect.EnumDescriptor
func (AddressType) Enum ¶
func (x AddressType) Enum() *AddressType
func (AddressType) EnumDescriptor
deprecated
func (AddressType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AddressType.Descriptor instead.
func (AddressType) Number ¶
func (x AddressType) Number() protoreflect.EnumNumber
func (AddressType) String ¶
func (x AddressType) String() string
func (AddressType) Type ¶
func (AddressType) Type() protoreflect.EnumType
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 ¶
func (AutoReason) Type() protoreflect.EnumType
type ClientReservation ¶
type ClientReservation struct { // The reservation id that identifies this reservation. ReservationId []byte `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` // The state the reservation is in. State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // The amount that the reservation is for. Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // The transaction id of the reservation. TxId string `protobuf:"bytes,4,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // The vout of the reservation. Vout uint32 `protobuf:"varint,5,opt,name=vout,proto3" json:"vout,omitempty"` // The expiry of the reservation. Expiry uint32 `protobuf:"varint,6,opt,name=expiry,proto3" json:"expiry,omitempty"` // contains filtered or unexported fields }
func (*ClientReservation) Descriptor
deprecated
func (*ClientReservation) Descriptor() ([]byte, []int)
Deprecated: Use ClientReservation.ProtoReflect.Descriptor instead.
func (*ClientReservation) GetAmount ¶
func (x *ClientReservation) GetAmount() uint64
func (*ClientReservation) GetExpiry ¶
func (x *ClientReservation) GetExpiry() uint32
func (*ClientReservation) GetReservationId ¶
func (x *ClientReservation) GetReservationId() []byte
func (*ClientReservation) GetState ¶
func (x *ClientReservation) GetState() string
func (*ClientReservation) GetTxId ¶
func (x *ClientReservation) GetTxId() string
func (*ClientReservation) GetVout ¶
func (x *ClientReservation) GetVout() uint32
func (*ClientReservation) ProtoMessage ¶
func (*ClientReservation) ProtoMessage()
func (*ClientReservation) ProtoReflect ¶
func (x *ClientReservation) ProtoReflect() protoreflect.Message
func (*ClientReservation) Reset ¶
func (x *ClientReservation) Reset()
func (*ClientReservation) String ¶
func (x *ClientReservation) 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#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) // contains filtered or unexported methods }
DebugServer is the server API for Debug service. All implementations must embed UnimplementedDebugServer for forward compatibility
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 // FAILURE_REASON_ABANDONED indicates that a swap permanently failed because // the client manually abandoned the swap. FailureReason_FAILURE_REASON_ABANDONED FailureReason = 7 // FAILURE_REASON_INSUFFICIENT_CONFIRMED_BALANCE indicates that a swap // wasn't published due to insufficient confirmed balance. FailureReason_FAILURE_REASON_INSUFFICIENT_CONFIRMED_BALANCE FailureReason = 8 // FAILURE_REASON_INCORRECT_HTLC_AMT_SWEPT indicates that a swap // wasn't published due to insufficient confirmed balance. FailureReason_FAILURE_REASON_INCORRECT_HTLC_AMT_SWEPT FailureReason = 9 )
func (FailureReason) Descriptor ¶
func (FailureReason) Descriptor() protoreflect.EnumDescriptor
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 (x FailureReason) Number() protoreflect.EnumNumber
func (FailureReason) String ¶
func (x FailureReason) String() string
func (FailureReason) Type ¶
func (FailureReason) Type() protoreflect.EnumType
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 GetInfoRequest ¶
type GetInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetInfoRequest) Descriptor
deprecated
func (*GetInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.
func (*GetInfoRequest) ProtoMessage ¶
func (*GetInfoRequest) ProtoMessage()
func (*GetInfoRequest) ProtoReflect ¶
func (x *GetInfoRequest) ProtoReflect() protoreflect.Message
func (*GetInfoRequest) Reset ¶
func (x *GetInfoRequest) Reset()
func (*GetInfoRequest) String ¶
func (x *GetInfoRequest) String() string
type GetInfoResponse ¶
type GetInfoResponse struct { // The current daemon version. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // The network the daemon is running on. Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"` // Host and port of the loopd grpc server. RpcListen string `protobuf:"bytes,3,opt,name=rpc_listen,json=rpcListen,proto3" json:"rpc_listen,omitempty"` // Host and port of the loopd rest server. RestListen string `protobuf:"bytes,4,opt,name=rest_listen,json=restListen,proto3" json:"rest_listen,omitempty"` // Loop's macaroon path that clients use to talk to the daemon. MacaroonPath string `protobuf:"bytes,5,opt,name=macaroon_path,json=macaroonPath,proto3" json:"macaroon_path,omitempty"` // Loop's tls cert path TlsCertPath string `protobuf:"bytes,6,opt,name=tls_cert_path,json=tlsCertPath,proto3" json:"tls_cert_path,omitempty"` // Statistics about loop outs. LoopOutStats *LoopStats `protobuf:"bytes,7,opt,name=loop_out_stats,json=loopOutStats,proto3" json:"loop_out_stats,omitempty"` // Statistics about loop ins. LoopInStats *LoopStats `protobuf:"bytes,8,opt,name=loop_in_stats,json=loopInStats,proto3" json:"loop_in_stats,omitempty"` // contains filtered or unexported fields }
func (*GetInfoResponse) Descriptor
deprecated
func (*GetInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.
func (*GetInfoResponse) GetLoopInStats ¶
func (x *GetInfoResponse) GetLoopInStats() *LoopStats
func (*GetInfoResponse) GetLoopOutStats ¶
func (x *GetInfoResponse) GetLoopOutStats() *LoopStats
func (*GetInfoResponse) GetMacaroonPath ¶
func (x *GetInfoResponse) GetMacaroonPath() string
func (*GetInfoResponse) GetNetwork ¶
func (x *GetInfoResponse) GetNetwork() string
func (*GetInfoResponse) GetRestListen ¶
func (x *GetInfoResponse) GetRestListen() string
func (*GetInfoResponse) GetRpcListen ¶
func (x *GetInfoResponse) GetRpcListen() string
func (*GetInfoResponse) GetTlsCertPath ¶
func (x *GetInfoResponse) GetTlsCertPath() string
func (*GetInfoResponse) GetVersion ¶
func (x *GetInfoResponse) GetVersion() string
func (*GetInfoResponse) ProtoMessage ¶
func (*GetInfoResponse) ProtoMessage()
func (*GetInfoResponse) ProtoReflect ¶
func (x *GetInfoResponse) ProtoReflect() protoreflect.Message
func (*GetInfoResponse) Reset ¶
func (x *GetInfoResponse) Reset()
func (*GetInfoResponse) String ¶
func (x *GetInfoResponse) 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 (x *GetLiquidityParamsRequest) ProtoReflect() protoreflect.Message
func (*GetLiquidityParamsRequest) Reset ¶
func (x *GetLiquidityParamsRequest) Reset()
func (*GetLiquidityParamsRequest) String ¶
func (x *GetLiquidityParamsRequest) 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 InstantOut ¶
type InstantOut struct { // The swap hash that identifies this swap. SwapHash []byte `protobuf:"bytes,1,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"` // The state the swap is in. State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // The amount of the swap. Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // The used reservations for the swap. ReservationIds [][]byte `protobuf:"bytes,4,rep,name=reservation_ids,json=reservationIds,proto3" json:"reservation_ids,omitempty"` // The sweep transaction id of the swap. SweepTxId string `protobuf:"bytes,5,opt,name=sweep_tx_id,json=sweepTxId,proto3" json:"sweep_tx_id,omitempty"` // contains filtered or unexported fields }
func (*InstantOut) Descriptor
deprecated
func (*InstantOut) Descriptor() ([]byte, []int)
Deprecated: Use InstantOut.ProtoReflect.Descriptor instead.
func (*InstantOut) GetAmount ¶
func (x *InstantOut) GetAmount() uint64
func (*InstantOut) GetReservationIds ¶
func (x *InstantOut) GetReservationIds() [][]byte
func (*InstantOut) GetState ¶
func (x *InstantOut) GetState() string
func (*InstantOut) GetSwapHash ¶
func (x *InstantOut) GetSwapHash() []byte
func (*InstantOut) GetSweepTxId ¶
func (x *InstantOut) GetSweepTxId() string
func (*InstantOut) ProtoMessage ¶
func (*InstantOut) ProtoMessage()
func (*InstantOut) ProtoReflect ¶
func (x *InstantOut) ProtoReflect() protoreflect.Message
func (*InstantOut) Reset ¶
func (x *InstantOut) Reset()
func (*InstantOut) String ¶
func (x *InstantOut) String() string
type InstantOutQuoteRequest ¶
type InstantOutQuoteRequest struct { // The amount to swap in satoshis. Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"` // The amount of reservations to use for the swap. NumReservations int32 `protobuf:"varint,2,opt,name=num_reservations,json=numReservations,proto3" json:"num_reservations,omitempty"` // contains filtered or unexported fields }
func (*InstantOutQuoteRequest) Descriptor
deprecated
func (*InstantOutQuoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstantOutQuoteRequest.ProtoReflect.Descriptor instead.
func (*InstantOutQuoteRequest) GetAmt ¶
func (x *InstantOutQuoteRequest) GetAmt() uint64
func (*InstantOutQuoteRequest) GetNumReservations ¶
func (x *InstantOutQuoteRequest) GetNumReservations() int32
func (*InstantOutQuoteRequest) ProtoMessage ¶
func (*InstantOutQuoteRequest) ProtoMessage()
func (*InstantOutQuoteRequest) ProtoReflect ¶
func (x *InstantOutQuoteRequest) ProtoReflect() protoreflect.Message
func (*InstantOutQuoteRequest) Reset ¶
func (x *InstantOutQuoteRequest) Reset()
func (*InstantOutQuoteRequest) String ¶
func (x *InstantOutQuoteRequest) String() string
type InstantOutQuoteResponse ¶
type InstantOutQuoteResponse struct { // The fee that the swap service is charging for the swap. ServiceFeeSat int64 `protobuf:"varint,1,opt,name=service_fee_sat,json=serviceFeeSat,proto3" json:"service_fee_sat,omitempty"` // The estimated on-chain fee that needs to be paid to publish the Sweepless // Sweep. SweepFeeSat int64 `protobuf:"varint,2,opt,name=sweep_fee_sat,json=sweepFeeSat,proto3" json:"sweep_fee_sat,omitempty"` // contains filtered or unexported fields }
func (*InstantOutQuoteResponse) Descriptor
deprecated
func (*InstantOutQuoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use InstantOutQuoteResponse.ProtoReflect.Descriptor instead.
func (*InstantOutQuoteResponse) GetServiceFeeSat ¶
func (x *InstantOutQuoteResponse) GetServiceFeeSat() int64
func (*InstantOutQuoteResponse) GetSweepFeeSat ¶
func (x *InstantOutQuoteResponse) GetSweepFeeSat() int64
func (*InstantOutQuoteResponse) ProtoMessage ¶
func (*InstantOutQuoteResponse) ProtoMessage()
func (*InstantOutQuoteResponse) ProtoReflect ¶
func (x *InstantOutQuoteResponse) ProtoReflect() protoreflect.Message
func (*InstantOutQuoteResponse) Reset ¶
func (x *InstantOutQuoteResponse) Reset()
func (*InstantOutQuoteResponse) String ¶
func (x *InstantOutQuoteResponse) String() string
type InstantOutRequest ¶
type InstantOutRequest struct { // The reservations to use for the swap. ReservationIds [][]byte `protobuf:"bytes,1,rep,name=reservation_ids,json=reservationIds,proto3" json:"reservation_ids,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,2,rep,packed,name=outgoing_chan_set,json=outgoingChanSet,proto3" json:"outgoing_chan_set,omitempty"` // An optional address to sweep the onchain funds to. If not set, the funds // will be swept to the wallet's internal address. DestAddr string `protobuf:"bytes,3,opt,name=dest_addr,json=destAddr,proto3" json:"dest_addr,omitempty"` // contains filtered or unexported fields }
func (*InstantOutRequest) Descriptor
deprecated
func (*InstantOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstantOutRequest.ProtoReflect.Descriptor instead.
func (*InstantOutRequest) GetDestAddr ¶
func (x *InstantOutRequest) GetDestAddr() string
func (*InstantOutRequest) GetOutgoingChanSet ¶
func (x *InstantOutRequest) GetOutgoingChanSet() []uint64
func (*InstantOutRequest) GetReservationIds ¶
func (x *InstantOutRequest) GetReservationIds() [][]byte
func (*InstantOutRequest) ProtoMessage ¶
func (*InstantOutRequest) ProtoMessage()
func (*InstantOutRequest) ProtoReflect ¶
func (x *InstantOutRequest) ProtoReflect() protoreflect.Message
func (*InstantOutRequest) Reset ¶
func (x *InstantOutRequest) Reset()
func (*InstantOutRequest) String ¶
func (x *InstantOutRequest) String() string
type InstantOutResponse ¶
type InstantOutResponse struct { // The hash of the swap preimage. InstantOutHash []byte `protobuf:"bytes,1,opt,name=instant_out_hash,json=instantOutHash,proto3" json:"instant_out_hash,omitempty"` // The transaction id of the sweep transaction. SweepTxId string `protobuf:"bytes,2,opt,name=sweep_tx_id,json=sweepTxId,proto3" json:"sweep_tx_id,omitempty"` // The state of the swap. State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*InstantOutResponse) Descriptor
deprecated
func (*InstantOutResponse) Descriptor() ([]byte, []int)
Deprecated: Use InstantOutResponse.ProtoReflect.Descriptor instead.
func (*InstantOutResponse) GetInstantOutHash ¶
func (x *InstantOutResponse) GetInstantOutHash() []byte
func (*InstantOutResponse) GetState ¶
func (x *InstantOutResponse) GetState() string
func (*InstantOutResponse) GetSweepTxId ¶
func (x *InstantOutResponse) GetSweepTxId() string
func (*InstantOutResponse) ProtoMessage ¶
func (*InstantOutResponse) ProtoMessage()
func (*InstantOutResponse) ProtoReflect ¶
func (x *InstantOutResponse) ProtoReflect() protoreflect.Message
func (*InstantOutResponse) Reset ¶
func (x *InstantOutResponse) Reset()
func (*InstantOutResponse) String ¶
func (x *InstantOutResponse) String() string
type L402Token ¶
type L402Token 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"` // The l402 ID of the token. Id string `protobuf:"bytes,9,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*L402Token) Descriptor
deprecated
func (*L402Token) GetAmountPaidMsat ¶
func (*L402Token) GetBaseMacaroon ¶
func (*L402Token) GetExpired ¶
func (*L402Token) GetPaymentHash ¶
func (*L402Token) GetPaymentPreimage ¶
func (*L402Token) GetRoutingFeePaidMsat ¶
func (*L402Token) GetStorageName ¶
func (*L402Token) GetTimeCreated ¶
func (*L402Token) ProtoMessage ¶
func (*L402Token) ProtoMessage()
func (*L402Token) ProtoReflect ¶
func (x *L402Token) ProtoReflect() protoreflect.Message
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"` // Deprecated, use autoloop_budget_refresh_period_sec. 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. // // Deprecated: Marked as deprecated in client.proto. 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"` // The confirmation target for loop in on-chain htlcs. HtlcConfTarget int32 `protobuf:"varint,17,opt,name=htlc_conf_target,json=htlcConfTarget,proto3" json:"htlc_conf_target,omitempty"` // The destination address to use for autoloop loop outs. Set to "default" in // order to revert to default behavior. AutoloopDestAddress string `protobuf:"bytes,18,opt,name=autoloop_dest_address,json=autoloopDestAddress,proto3" json:"autoloop_dest_address,omitempty"` // The period over which the autoloop budget is refreshed, expressed in // seconds. AutoloopBudgetRefreshPeriodSec uint64 `` /* 159-byte string literal not displayed */ // The time at which the autoloop budget was last refreshed, expressed as a // UNIX timestamp in seconds. AutoloopBudgetLastRefresh uint64 `` /* 142-byte string literal not displayed */ // Set to true to enable easy autoloop. If set, all channel/peer rules will be // overridden and the client will automatically dispatch swaps in order to meet // the configured local balance target size. Currently only loop out is // supported, meaning that easy autoloop can only reduce the funds that are // held as balance in channels. EasyAutoloop bool `protobuf:"varint,21,opt,name=easy_autoloop,json=easyAutoloop,proto3" json:"easy_autoloop,omitempty"` // The local balance target size, expressed in satoshis. This is used by easy // autoloop to determine how much liquidity should be maintained in channels. EasyAutoloopLocalTargetSat uint64 `` /* 147-byte string literal not displayed */ // An alternative destination address source for the swap. This field // represents the name of the account in the backing lnd instance. // Refer to lnd's wallet import functions for reference. Account string `protobuf:"bytes,23,opt,name=account,proto3" json:"account,omitempty"` // The address type of the account specified in the account field. AccountAddrType AddressType `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LiquidityParameters) Descriptor
deprecated
func (*LiquidityParameters) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityParameters.ProtoReflect.Descriptor instead.
func (*LiquidityParameters) GetAccount ¶
func (x *LiquidityParameters) GetAccount() string
func (*LiquidityParameters) GetAccountAddrType ¶
func (x *LiquidityParameters) GetAccountAddrType() AddressType
func (*LiquidityParameters) GetAutoMaxInFlight ¶
func (x *LiquidityParameters) GetAutoMaxInFlight() uint64
func (*LiquidityParameters) GetAutoloop ¶
func (x *LiquidityParameters) GetAutoloop() bool
func (*LiquidityParameters) GetAutoloopBudgetLastRefresh ¶
func (x *LiquidityParameters) GetAutoloopBudgetLastRefresh() uint64
func (*LiquidityParameters) GetAutoloopBudgetRefreshPeriodSec ¶
func (x *LiquidityParameters) GetAutoloopBudgetRefreshPeriodSec() uint64
func (*LiquidityParameters) GetAutoloopBudgetSat ¶
func (x *LiquidityParameters) GetAutoloopBudgetSat() uint64
func (*LiquidityParameters) GetAutoloopBudgetStartSec
deprecated
func (x *LiquidityParameters) GetAutoloopBudgetStartSec() uint64
Deprecated: Marked as deprecated in client.proto.
func (*LiquidityParameters) GetAutoloopDestAddress ¶
func (x *LiquidityParameters) GetAutoloopDestAddress() string
func (*LiquidityParameters) GetEasyAutoloop ¶
func (x *LiquidityParameters) GetEasyAutoloop() bool
func (*LiquidityParameters) GetEasyAutoloopLocalTargetSat ¶
func (x *LiquidityParameters) GetEasyAutoloopLocalTargetSat() uint64
func (*LiquidityParameters) GetFailureBackoffSec ¶
func (x *LiquidityParameters) GetFailureBackoffSec() uint64
func (*LiquidityParameters) GetFeePpm ¶
func (x *LiquidityParameters) GetFeePpm() uint64
func (*LiquidityParameters) GetHtlcConfTarget ¶
func (x *LiquidityParameters) GetHtlcConfTarget() int32
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 type of swap that will be dispatched for this rule. SwapType SwapType `protobuf:"varint,6,opt,name=swap_type,json=swapType,proto3,enum=looprpc.SwapType" json:"swap_type,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) GetSwapType ¶
func (x *LiquidityRule) GetSwapType() SwapType
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) Descriptor() protoreflect.EnumDescriptor
func (LiquidityRuleType) Enum ¶
func (x LiquidityRuleType) Enum() *LiquidityRuleType
func (LiquidityRuleType) EnumDescriptor
deprecated
func (LiquidityRuleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use LiquidityRuleType.Descriptor instead.
func (LiquidityRuleType) Number ¶
func (x LiquidityRuleType) Number() protoreflect.EnumNumber
func (LiquidityRuleType) String ¶
func (x LiquidityRuleType) String() string
func (LiquidityRuleType) Type ¶
func (LiquidityRuleType) Type() protoreflect.EnumType
type ListInstantOutsRequest ¶
type ListInstantOutsRequest struct {
// contains filtered or unexported fields
}
func (*ListInstantOutsRequest) Descriptor
deprecated
func (*ListInstantOutsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListInstantOutsRequest.ProtoReflect.Descriptor instead.
func (*ListInstantOutsRequest) ProtoMessage ¶
func (*ListInstantOutsRequest) ProtoMessage()
func (*ListInstantOutsRequest) ProtoReflect ¶
func (x *ListInstantOutsRequest) ProtoReflect() protoreflect.Message
func (*ListInstantOutsRequest) Reset ¶
func (x *ListInstantOutsRequest) Reset()
func (*ListInstantOutsRequest) String ¶
func (x *ListInstantOutsRequest) String() string
type ListInstantOutsResponse ¶
type ListInstantOutsResponse struct { // The list of all currently known instant out swaps and their status. Swaps []*InstantOut `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps,omitempty"` // contains filtered or unexported fields }
func (*ListInstantOutsResponse) Descriptor
deprecated
func (*ListInstantOutsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListInstantOutsResponse.ProtoReflect.Descriptor instead.
func (*ListInstantOutsResponse) GetSwaps ¶
func (x *ListInstantOutsResponse) GetSwaps() []*InstantOut
func (*ListInstantOutsResponse) ProtoMessage ¶
func (*ListInstantOutsResponse) ProtoMessage()
func (*ListInstantOutsResponse) ProtoReflect ¶
func (x *ListInstantOutsResponse) ProtoReflect() protoreflect.Message
func (*ListInstantOutsResponse) Reset ¶
func (x *ListInstantOutsResponse) Reset()
func (*ListInstantOutsResponse) String ¶
func (x *ListInstantOutsResponse) String() string
type ListReservationsRequest ¶
type ListReservationsRequest struct {
// contains filtered or unexported fields
}
func (*ListReservationsRequest) Descriptor
deprecated
func (*ListReservationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListReservationsRequest.ProtoReflect.Descriptor instead.
func (*ListReservationsRequest) ProtoMessage ¶
func (*ListReservationsRequest) ProtoMessage()
func (*ListReservationsRequest) ProtoReflect ¶
func (x *ListReservationsRequest) ProtoReflect() protoreflect.Message
func (*ListReservationsRequest) Reset ¶
func (x *ListReservationsRequest) Reset()
func (*ListReservationsRequest) String ¶
func (x *ListReservationsRequest) String() string
type ListReservationsResponse ¶
type ListReservationsResponse struct { // The list of all currently known reservations and their status. Reservations []*ClientReservation `protobuf:"bytes,1,rep,name=reservations,proto3" json:"reservations,omitempty"` // contains filtered or unexported fields }
func (*ListReservationsResponse) Descriptor
deprecated
func (*ListReservationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListReservationsResponse.ProtoReflect.Descriptor instead.
func (*ListReservationsResponse) GetReservations ¶
func (x *ListReservationsResponse) GetReservations() []*ClientReservation
func (*ListReservationsResponse) ProtoMessage ¶
func (*ListReservationsResponse) ProtoMessage()
func (*ListReservationsResponse) ProtoReflect ¶
func (x *ListReservationsResponse) ProtoReflect() protoreflect.Message
func (*ListReservationsResponse) Reset ¶
func (x *ListReservationsResponse) Reset()
func (*ListReservationsResponse) String ¶
func (x *ListReservationsResponse) String() string
type ListSwapsFilter ¶
type ListSwapsFilter struct { // The type of the swap. SwapType ListSwapsFilter_SwapTypeFilter `` /* 130-byte string literal not displayed */ // If set, only pending swaps are returned. PendingOnly bool `protobuf:"varint,2,opt,name=pending_only,json=pendingOnly,proto3" json:"pending_only,omitempty"` // If specified on creation, the outgoing channel set of the swap. OutgoingChanSet []uint64 `protobuf:"varint,3,rep,packed,name=outgoing_chan_set,json=outgoingChanSet,proto3" json:"outgoing_chan_set,omitempty"` // Label of swap to filter for. Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` // If specified on creation, the last hop of the swap. LoopInLastHop []byte `protobuf:"bytes,5,opt,name=loop_in_last_hop,json=loopInLastHop,proto3" json:"loop_in_last_hop,omitempty"` // contains filtered or unexported fields }
func (*ListSwapsFilter) Descriptor
deprecated
func (*ListSwapsFilter) Descriptor() ([]byte, []int)
Deprecated: Use ListSwapsFilter.ProtoReflect.Descriptor instead.
func (*ListSwapsFilter) GetLabel ¶
func (x *ListSwapsFilter) GetLabel() string
func (*ListSwapsFilter) GetLoopInLastHop ¶
func (x *ListSwapsFilter) GetLoopInLastHop() []byte
func (*ListSwapsFilter) GetOutgoingChanSet ¶
func (x *ListSwapsFilter) GetOutgoingChanSet() []uint64
func (*ListSwapsFilter) GetPendingOnly ¶
func (x *ListSwapsFilter) GetPendingOnly() bool
func (*ListSwapsFilter) GetSwapType ¶
func (x *ListSwapsFilter) GetSwapType() ListSwapsFilter_SwapTypeFilter
func (*ListSwapsFilter) ProtoMessage ¶
func (*ListSwapsFilter) ProtoMessage()
func (*ListSwapsFilter) ProtoReflect ¶
func (x *ListSwapsFilter) ProtoReflect() protoreflect.Message
func (*ListSwapsFilter) Reset ¶
func (x *ListSwapsFilter) Reset()
func (*ListSwapsFilter) String ¶
func (x *ListSwapsFilter) String() string
type ListSwapsFilter_SwapTypeFilter ¶
type ListSwapsFilter_SwapTypeFilter int32
const ( // ANY indicates that no filter is applied. ListSwapsFilter_ANY ListSwapsFilter_SwapTypeFilter = 0 // LOOP_OUT indicates an loop out swap (off-chain to on-chain). ListSwapsFilter_LOOP_OUT ListSwapsFilter_SwapTypeFilter = 1 // LOOP_IN indicates a loop in swap (on-chain to off-chain). ListSwapsFilter_LOOP_IN ListSwapsFilter_SwapTypeFilter = 2 )
func (ListSwapsFilter_SwapTypeFilter) Descriptor ¶
func (ListSwapsFilter_SwapTypeFilter) Descriptor() protoreflect.EnumDescriptor
func (ListSwapsFilter_SwapTypeFilter) Enum ¶
func (x ListSwapsFilter_SwapTypeFilter) Enum() *ListSwapsFilter_SwapTypeFilter
func (ListSwapsFilter_SwapTypeFilter) EnumDescriptor
deprecated
func (ListSwapsFilter_SwapTypeFilter) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListSwapsFilter_SwapTypeFilter.Descriptor instead.
func (ListSwapsFilter_SwapTypeFilter) Number ¶
func (x ListSwapsFilter_SwapTypeFilter) Number() protoreflect.EnumNumber
func (ListSwapsFilter_SwapTypeFilter) String ¶
func (x ListSwapsFilter_SwapTypeFilter) String() string
func (ListSwapsFilter_SwapTypeFilter) Type ¶
func (ListSwapsFilter_SwapTypeFilter) Type() protoreflect.EnumType
type ListSwapsRequest ¶
type ListSwapsRequest struct { // Optional filter to only return swaps that match the filter. ListSwapFilter *ListSwapsFilter `protobuf:"bytes,1,opt,name=list_swap_filter,json=listSwapFilter,proto3" json:"list_swap_filter,omitempty"` // contains filtered or unexported fields }
func (*ListSwapsRequest) Descriptor
deprecated
func (*ListSwapsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSwapsRequest.ProtoReflect.Descriptor instead.
func (*ListSwapsRequest) GetListSwapFilter ¶
func (x *ListSwapsRequest) GetListSwapFilter() *ListSwapsFilter
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"` // Optional route hints to reach the destination through private channels. RouteHints []*swapserverrpc.RouteHint `protobuf:"bytes,9,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"` // Private indicates whether the destination node should be considered // private. In which case, loop will generate hophints to assist with // probing and payment. Private bool `protobuf:"varint,10,opt,name=private,proto3" json:"private,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) GetPrivate ¶
func (x *LoopInRequest) GetPrivate() bool
func (*LoopInRequest) GetRouteHints ¶
func (x *LoopInRequest) GetRouteHints() []*swapserverrpc.RouteHint
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: Marked as deprecated in client.proto. 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"` // An alternative destination address source for the swap. This field // represents the name of the account in the backing lnd instance. // Refer to lnd's wallet import functions for reference. Account string `protobuf:"bytes,15,opt,name=account,proto3" json:"account,omitempty"` // The address type of the account specified in the account field. AccountAddrType AddressType `` /* 135-byte string literal not displayed */ // A flag indicating whether the defined destination address does not belong to // the wallet. This is used to flag whether this loop out swap could have its // associated sweep batched. IsExternalAddr bool `protobuf:"varint,17,opt,name=is_external_addr,json=isExternalAddr,proto3" json:"is_external_addr,omitempty"` // The reservations to use for the swap. If this field is set, loop will try // to use the instant out flow using the given reservations. If the // reservations are not sufficient, the swap will fail. The swap amount must // be equal to the sum of the amounts of the reservations. ReservationIds [][]byte `protobuf:"bytes,18,rep,name=reservation_ids,json=reservationIds,proto3" json:"reservation_ids,omitempty"` // The timeout in seconds to use for off-chain payments. Note that the swap // payment is attempted multiple times where each attempt will set this value // as the timeout for the payment. PaymentTimeout uint32 `protobuf:"varint,19,opt,name=payment_timeout,json=paymentTimeout,proto3" json:"payment_timeout,omitempty"` // contains filtered or unexported fields }
func (*LoopOutRequest) Descriptor
deprecated
func (*LoopOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoopOutRequest.ProtoReflect.Descriptor instead.
func (*LoopOutRequest) GetAccount ¶
func (x *LoopOutRequest) GetAccount() string
func (*LoopOutRequest) GetAccountAddrType ¶
func (x *LoopOutRequest) GetAccountAddrType() AddressType
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) GetIsExternalAddr ¶
func (x *LoopOutRequest) GetIsExternalAddr() bool
func (*LoopOutRequest) GetLabel ¶
func (x *LoopOutRequest) GetLabel() string
func (*LoopOutRequest) GetLoopOutChannel
deprecated
func (x *LoopOutRequest) GetLoopOutChannel() uint64
Deprecated: Marked as deprecated in client.proto.
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) GetPaymentTimeout ¶
func (x *LoopOutRequest) GetPaymentTimeout() uint32
func (*LoopOutRequest) GetReservationIds ¶
func (x *LoopOutRequest) GetReservationIds() [][]byte
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 LoopStats ¶
type LoopStats struct { // Number of currently pending swaps. PendingCount uint64 `protobuf:"varint,1,opt,name=pending_count,json=pendingCount,proto3" json:"pending_count,omitempty"` // Number of succeeded swaps. SuccessCount uint64 `protobuf:"varint,2,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` // Number failed swaps. FailCount uint64 `protobuf:"varint,3,opt,name=fail_count,json=failCount,proto3" json:"fail_count,omitempty"` // The sum of all pending swap amounts. SumPendingAmt int64 `protobuf:"varint,4,opt,name=sum_pending_amt,json=sumPendingAmt,proto3" json:"sum_pending_amt,omitempty"` // The sum of all succeeded swap amounts. SumSucceededAmt int64 `protobuf:"varint,5,opt,name=sum_succeeded_amt,json=sumSucceededAmt,proto3" json:"sum_succeeded_amt,omitempty"` // contains filtered or unexported fields }
func (*LoopStats) Descriptor
deprecated
func (*LoopStats) GetFailCount ¶
func (*LoopStats) GetPendingCount ¶
func (*LoopStats) GetSuccessCount ¶
func (*LoopStats) GetSumPendingAmt ¶
func (*LoopStats) GetSumSucceededAmt ¶
func (*LoopStats) ProtoMessage ¶
func (*LoopStats) ProtoMessage()
func (*LoopStats) ProtoReflect ¶
func (x *LoopStats) ProtoReflect() protoreflect.Message
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 ProbeRequest ¶
type ProbeRequest struct { // The amount to probe. Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"` // Optional last hop of the route to probe. LastHop []byte `protobuf:"bytes,2,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"` // Optional route hints to reach the destination through private channels. RouteHints []*swapserverrpc.RouteHint `protobuf:"bytes,3,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"` // contains filtered or unexported fields }
func (*ProbeRequest) Descriptor
deprecated
func (*ProbeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProbeRequest.ProtoReflect.Descriptor instead.
func (*ProbeRequest) GetAmt ¶
func (x *ProbeRequest) GetAmt() int64
func (*ProbeRequest) GetLastHop ¶
func (x *ProbeRequest) GetLastHop() []byte
func (*ProbeRequest) GetRouteHints ¶
func (x *ProbeRequest) GetRouteHints() []*swapserverrpc.RouteHint
func (*ProbeRequest) ProtoMessage ¶
func (*ProbeRequest) ProtoMessage()
func (*ProbeRequest) ProtoReflect ¶
func (x *ProbeRequest) ProtoReflect() protoreflect.Message
func (*ProbeRequest) Reset ¶
func (x *ProbeRequest) Reset()
func (*ProbeRequest) String ¶
func (x *ProbeRequest) String() string
type ProbeResponse ¶
type ProbeResponse struct {
// contains filtered or unexported fields
}
func (*ProbeResponse) Descriptor
deprecated
func (*ProbeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProbeResponse.ProtoReflect.Descriptor instead.
func (*ProbeResponse) ProtoMessage ¶
func (*ProbeResponse) ProtoMessage()
func (*ProbeResponse) ProtoReflect ¶
func (x *ProbeResponse) ProtoReflect() protoreflect.Message
func (*ProbeResponse) Reset ¶
func (x *ProbeResponse) Reset()
func (*ProbeResponse) String ¶
func (x *ProbeResponse) String() string
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 */ // Optionally the client can specify the last hop pubkey when requesting a // loop-in quote. This is useful to get better off-chain routing fee from the // server. LoopInLastHop []byte `protobuf:"bytes,5,opt,name=loop_in_last_hop,json=loopInLastHop,proto3" json:"loop_in_last_hop,omitempty"` // Optional route hints to reach the destination through private channels. LoopInRouteHints []*swapserverrpc.RouteHint `protobuf:"bytes,6,rep,name=loop_in_route_hints,json=loopInRouteHints,proto3" json:"loop_in_route_hints,omitempty"` // Private indicates whether the destination node should be considered // private. In which case, loop will generate hophints to assist with // probing and payment. Private bool `protobuf:"varint,7,opt,name=private,proto3" json:"private,omitempty"` // 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) GetLoopInLastHop ¶
func (x *QuoteRequest) GetLoopInLastHop() []byte
func (*QuoteRequest) GetLoopInRouteHints ¶
func (x *QuoteRequest) GetLoopInRouteHints() []*swapserverrpc.RouteHint
func (*QuoteRequest) GetPrivate ¶
func (x *QuoteRequest) GetPrivate() 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 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 (x *SetLiquidityParamsRequest) ProtoReflect() protoreflect.Message
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 (x *SetLiquidityParamsResponse) ProtoReflect() protoreflect.Message
func (*SetLiquidityParamsResponse) Reset ¶
func (x *SetLiquidityParamsResponse) Reset()
func (*SetLiquidityParamsResponse) String ¶
func (x *SetLiquidityParamsResponse) 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"` // The set of recommended loop in swaps LoopIn []*LoopInRequest `protobuf:"bytes,3,rep,name=loop_in,json=loopIn,proto3" json:"loop_in,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) GetLoopIn ¶
func (x *SuggestSwapsResponse) GetLoopIn() []*LoopInRequest
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: `abandonswap` // AbandonSwap allows the client to abandon a swap. AbandonSwap(ctx context.Context, in *AbandonSwapRequest, opts ...grpc.CallOption) (*AbandonSwapResponse, 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) // Probe asks he sever to probe the route to us to have a better upfront // estimate about routing fees when loopin-in. Probe(ctx context.Context, in *ProbeRequest, opts ...grpc.CallOption) (*ProbeResponse, error) // loop: `listauth` // GetL402Tokens returns all L402 tokens the daemon ever paid for. GetL402Tokens(ctx context.Context, in *TokensRequest, opts ...grpc.CallOption) (*TokensResponse, error) // Deprecated: use GetL402Tokens. // This API is provided to maintain backward compatibility with gRPC clients // (e.g. `loop listauth`, Terminal Web, RTL). // Type LsatToken used by GetLsatTokens in the past was renamed to L402Token, // but this does not affect binary encoding, so we can use type L402Token here. GetLsatTokens(ctx context.Context, in *TokensRequest, opts ...grpc.CallOption) (*TokensResponse, error) // loop: `getinfo` // GetInfo gets basic information about the loop daemon. GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, 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) // loop: `listreservations` // ListReservations returns a list of all reservations the server opened to us. ListReservations(ctx context.Context, in *ListReservationsRequest, opts ...grpc.CallOption) (*ListReservationsResponse, error) // loop: `instantout` // InstantOut initiates an instant out swap with the given parameters. InstantOut(ctx context.Context, in *InstantOutRequest, opts ...grpc.CallOption) (*InstantOutResponse, error) // loop: `instantoutquote` // InstantOutQuote returns a quote for an instant out swap with the provided // parameters. InstantOutQuote(ctx context.Context, in *InstantOutQuoteRequest, opts ...grpc.CallOption) (*InstantOutQuoteResponse, error) // loop: `listinstantouts` // ListInstantOuts returns a list of all currently known instant out swaps and // their current status. ListInstantOuts(ctx context.Context, in *ListInstantOutsRequest, opts ...grpc.CallOption) (*ListInstantOutsResponse, error) }
SwapClientClient is the client API for SwapClient service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func 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: `abandonswap` // AbandonSwap allows the client to abandon a swap. AbandonSwap(context.Context, *AbandonSwapRequest) (*AbandonSwapResponse, 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) // Probe asks he sever to probe the route to us to have a better upfront // estimate about routing fees when loopin-in. Probe(context.Context, *ProbeRequest) (*ProbeResponse, error) // loop: `listauth` // GetL402Tokens returns all L402 tokens the daemon ever paid for. GetL402Tokens(context.Context, *TokensRequest) (*TokensResponse, error) // Deprecated: use GetL402Tokens. // This API is provided to maintain backward compatibility with gRPC clients // (e.g. `loop listauth`, Terminal Web, RTL). // Type LsatToken used by GetLsatTokens in the past was renamed to L402Token, // but this does not affect binary encoding, so we can use type L402Token here. GetLsatTokens(context.Context, *TokensRequest) (*TokensResponse, error) // loop: `getinfo` // GetInfo gets basic information about the loop daemon. GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, 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) // loop: `listreservations` // ListReservations returns a list of all reservations the server opened to us. ListReservations(context.Context, *ListReservationsRequest) (*ListReservationsResponse, error) // loop: `instantout` // InstantOut initiates an instant out swap with the given parameters. InstantOut(context.Context, *InstantOutRequest) (*InstantOutResponse, error) // loop: `instantoutquote` // InstantOutQuote returns a quote for an instant out swap with the provided // parameters. InstantOutQuote(context.Context, *InstantOutQuoteRequest) (*InstantOutQuoteResponse, error) // loop: `listinstantouts` // ListInstantOuts returns a list of all currently known instant out swaps and // their current status. ListInstantOuts(context.Context, *ListInstantOutsRequest) (*ListInstantOutsResponse, error) // contains filtered or unexported methods }
SwapClientServer is the server API for SwapClient service. All implementations must embed UnimplementedSwapClientServer for forward compatibility
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: Marked as deprecated in client.proto. 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 loop-out htlc_address always contains the native segwit (P2WSH) // htlc address. // // Deprecated: Marked as deprecated in client.proto. HtlcAddress string `protobuf:"bytes,2,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,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"` // The address of the v3 (taproot) htlc. Used for both loop-in and loop-out. HtlcAddressP2Tr string `protobuf:"bytes,7,opt,name=htlc_address_p2tr,json=htlcAddressP2tr,proto3" json:"htlc_address_p2tr,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: Marked as deprecated in client.proto.
func (*SwapResponse) GetHtlcAddressP2Tr ¶
func (x *SwapResponse) GetHtlcAddressP2Tr() string
func (*SwapResponse) GetHtlcAddressP2Wsh ¶
func (x *SwapResponse) GetHtlcAddressP2Wsh() string
func (*SwapResponse) GetId
deprecated
func (x *SwapResponse) GetId() string
Deprecated: Marked as deprecated in client.proto.
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 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) EnumDescriptor
deprecated
func (SwapState) Number ¶
func (x SwapState) Number() protoreflect.EnumNumber
func (SwapState) Type ¶
func (SwapState) Type() protoreflect.EnumType
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: Marked as deprecated in client.proto. 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 loop-out htlc_address always contains the native segwit (P2WSH) // htlc address. // // Deprecated: Marked as deprecated in client.proto. 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"` // The address of the v3 (taproot) htlc. Used for both loop-in and loop-out. HtlcAddressP2Tr string `protobuf:"bytes,18,opt,name=htlc_address_p2tr,json=htlcAddressP2tr,proto3" json:"htlc_address_p2tr,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"` // Optional last hop if provided in the loop in request. LastHop []byte `protobuf:"bytes,16,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"` // Optional outgoing channel set if provided in the loop out request. OutgoingChanSet []uint64 `protobuf:"varint,17,rep,packed,name=outgoing_chan_set,json=outgoingChanSet,proto3" json:"outgoing_chan_set,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: Marked as deprecated in client.proto.
func (*SwapStatus) GetHtlcAddressP2Tr ¶
func (x *SwapStatus) GetHtlcAddressP2Tr() string
func (*SwapStatus) GetHtlcAddressP2Wsh ¶
func (x *SwapStatus) GetHtlcAddressP2Wsh() string
func (*SwapStatus) GetId
deprecated
func (x *SwapStatus) GetId() string
Deprecated: Marked as deprecated in client.proto.
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) GetLastHop ¶
func (x *SwapStatus) GetLastHop() []byte
func (*SwapStatus) GetLastUpdateTime ¶
func (x *SwapStatus) GetLastUpdateTime() int64
func (*SwapStatus) GetOutgoingChanSet ¶
func (x *SwapStatus) GetOutgoingChanSet() []uint64
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
func (SwapType) Descriptor ¶
func (SwapType) Descriptor() protoreflect.EnumDescriptor
func (SwapType) EnumDescriptor
deprecated
func (SwapType) Number ¶
func (x SwapType) Number() protoreflect.EnumNumber
func (SwapType) Type ¶
func (SwapType) Type() protoreflect.EnumType
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 []*L402Token `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() []*L402Token
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 must be embedded to have forward compatible implementations.
func (UnimplementedDebugServer) ForceAutoLoop ¶
func (UnimplementedDebugServer) ForceAutoLoop(context.Context, *ForceAutoLoopRequest) (*ForceAutoLoopResponse, error)
type UnimplementedSwapClientServer ¶
type UnimplementedSwapClientServer struct { }
UnimplementedSwapClientServer must be embedded to have forward compatible implementations.
func (UnimplementedSwapClientServer) AbandonSwap ¶
func (UnimplementedSwapClientServer) AbandonSwap(context.Context, *AbandonSwapRequest) (*AbandonSwapResponse, error)
func (UnimplementedSwapClientServer) GetInfo ¶
func (UnimplementedSwapClientServer) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
func (UnimplementedSwapClientServer) GetL402Tokens ¶
func (UnimplementedSwapClientServer) GetL402Tokens(context.Context, *TokensRequest) (*TokensResponse, error)
func (UnimplementedSwapClientServer) GetLiquidityParams ¶
func (UnimplementedSwapClientServer) GetLiquidityParams(context.Context, *GetLiquidityParamsRequest) (*LiquidityParameters, error)
func (UnimplementedSwapClientServer) GetLoopInQuote ¶
func (UnimplementedSwapClientServer) GetLoopInQuote(context.Context, *QuoteRequest) (*InQuoteResponse, error)
func (UnimplementedSwapClientServer) GetLoopInTerms ¶
func (UnimplementedSwapClientServer) GetLoopInTerms(context.Context, *TermsRequest) (*InTermsResponse, error)
func (UnimplementedSwapClientServer) GetLsatTokens ¶
func (UnimplementedSwapClientServer) GetLsatTokens(context.Context, *TokensRequest) (*TokensResponse, error)
func (UnimplementedSwapClientServer) InstantOut ¶
func (UnimplementedSwapClientServer) InstantOut(context.Context, *InstantOutRequest) (*InstantOutResponse, error)
func (UnimplementedSwapClientServer) InstantOutQuote ¶
func (UnimplementedSwapClientServer) InstantOutQuote(context.Context, *InstantOutQuoteRequest) (*InstantOutQuoteResponse, error)
func (UnimplementedSwapClientServer) ListInstantOuts ¶
func (UnimplementedSwapClientServer) ListInstantOuts(context.Context, *ListInstantOutsRequest) (*ListInstantOutsResponse, error)
func (UnimplementedSwapClientServer) ListReservations ¶
func (UnimplementedSwapClientServer) ListReservations(context.Context, *ListReservationsRequest) (*ListReservationsResponse, error)
func (UnimplementedSwapClientServer) ListSwaps ¶
func (UnimplementedSwapClientServer) ListSwaps(context.Context, *ListSwapsRequest) (*ListSwapsResponse, error)
func (UnimplementedSwapClientServer) LoopIn ¶
func (UnimplementedSwapClientServer) LoopIn(context.Context, *LoopInRequest) (*SwapResponse, error)
func (UnimplementedSwapClientServer) LoopOut ¶
func (UnimplementedSwapClientServer) LoopOut(context.Context, *LoopOutRequest) (*SwapResponse, error)
func (UnimplementedSwapClientServer) LoopOutQuote ¶
func (UnimplementedSwapClientServer) LoopOutQuote(context.Context, *QuoteRequest) (*OutQuoteResponse, error)
func (UnimplementedSwapClientServer) LoopOutTerms ¶
func (UnimplementedSwapClientServer) LoopOutTerms(context.Context, *TermsRequest) (*OutTermsResponse, error)
func (UnimplementedSwapClientServer) Monitor ¶
func (UnimplementedSwapClientServer) Monitor(*MonitorRequest, SwapClient_MonitorServer) error
func (UnimplementedSwapClientServer) Probe ¶
func (UnimplementedSwapClientServer) Probe(context.Context, *ProbeRequest) (*ProbeResponse, error)
func (UnimplementedSwapClientServer) SetLiquidityParams ¶
func (UnimplementedSwapClientServer) SetLiquidityParams(context.Context, *SetLiquidityParamsRequest) (*SetLiquidityParamsResponse, error)
func (UnimplementedSwapClientServer) SuggestSwaps ¶
func (UnimplementedSwapClientServer) SuggestSwaps(context.Context, *SuggestSwapsRequest) (*SuggestSwapsResponse, error)
func (UnimplementedSwapClientServer) SwapInfo ¶
func (UnimplementedSwapClientServer) SwapInfo(context.Context, *SwapInfoRequest) (*SwapStatus, error)
type UnsafeDebugServer ¶
type UnsafeDebugServer interface {
// contains filtered or unexported methods
}
UnsafeDebugServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DebugServer will result in compilation errors.
type UnsafeSwapClientServer ¶
type UnsafeSwapClientServer interface {
// contains filtered or unexported methods
}
UnsafeSwapClientServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SwapClientServer will result in compilation errors.