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 AutoReason
- 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 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 LiquidityParameters
- func (*LiquidityParameters) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityParameters) GetAutoMaxInFlight() uint64
- func (x *LiquidityParameters) GetAutoloop() bool
- func (x *LiquidityParameters) GetAutoloopBudgetSat() uint64
- func (x *LiquidityParameters) GetAutoloopBudgetStartSec() uint64
- func (x *LiquidityParameters) GetAutoloopDestAddress() string
- 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 ListSwapsRequest
- 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) GetAmt() int64
- func (x *LoopOutRequest) GetDest() string
- func (x *LoopOutRequest) GetHtlcConfirmations() int32
- func (x *LoopOutRequest) GetInitiator() string
- 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) 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 LsatToken
- func (*LsatToken) Descriptor() ([]byte, []int)deprecated
- func (x *LsatToken) GetAmountPaidMsat() int64
- func (x *LsatToken) GetBaseMacaroon() []byte
- func (x *LsatToken) GetExpired() bool
- func (x *LsatToken) GetPaymentHash() []byte
- func (x *LsatToken) GetPaymentPreimage() []byte
- func (x *LsatToken) GetRoutingFeePaidMsat() int64
- func (x *LsatToken) GetStorageName() string
- func (x *LsatToken) GetTimeCreated() int64
- func (*LsatToken) ProtoMessage()
- func (x *LsatToken) ProtoReflect() protoreflect.Message
- func (x *LsatToken) Reset()
- func (x *LsatToken) 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) 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) 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 ( 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", } FailureReason_value = map[string]int32{ "FAILURE_REASON_NONE": 0, "FAILURE_REASON_OFFCHAIN": 1, "FAILURE_REASON_TIMEOUT": 2, "FAILURE_REASON_SWEEP_TIMEOUT": 3, "FAILURE_REASON_INSUFFICIENT_VALUE": 4, "FAILURE_REASON_TEMPORARY": 5, "FAILURE_REASON_INCORRECT_AMOUNT": 6, } )
Enum value maps for FailureReason.
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 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: "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: "GetLsatTokens", Handler: _SwapClient_GetLsatTokens_Handler, }, { MethodName: "GetLiquidityParams", Handler: _SwapClient_GetLiquidityParams_Handler, }, { MethodName: "SetLiquidityParams", Handler: _SwapClient_SetLiquidityParams_Handler, }, { MethodName: "SuggestSwaps", Handler: _SwapClient_SuggestSwaps_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 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 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 )
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 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 LiquidityParameters ¶
type LiquidityParameters struct { // //A set of liquidity rules that describe the desired liquidity balance. Rules []*LiquidityRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // //The parts per million of swap amount that is allowed to be allocated to swap //fees. This value is applied across swap categories and may not be set in //conjunction with sweep fee rate, swap fee ppm, routing fee ppm, prepay //routing, max prepay and max miner fee. FeePpm uint64 `protobuf:"varint,16,opt,name=fee_ppm,json=feePpm,proto3" json:"fee_ppm,omitempty"` // //The limit we place on our estimated sweep cost for a swap in sat/vByte. If //the estimated fee for our sweep transaction within the specified //confirmation target is above this value, we will not suggest any swaps. SweepFeeRateSatPerVbyte uint64 `` /* 139-byte string literal not displayed */ // //The maximum fee paid to the server for facilitating the swap, expressed //as parts per million of the swap volume. MaxSwapFeePpm uint64 `protobuf:"varint,3,opt,name=max_swap_fee_ppm,json=maxSwapFeePpm,proto3" json:"max_swap_fee_ppm,omitempty"` // //The maximum fee paid to route the swap invoice off chain, expressed as //parts per million of the volume being routed. MaxRoutingFeePpm uint64 `protobuf:"varint,4,opt,name=max_routing_fee_ppm,json=maxRoutingFeePpm,proto3" json:"max_routing_fee_ppm,omitempty"` // //The maximum fee paid to route the prepay invoice off chain, expressed as //parts per million of the volume being routed. MaxPrepayRoutingFeePpm uint64 `` /* 134-byte string literal not displayed */ // //The maximum no-show penalty in satoshis paid for a swap. MaxPrepaySat uint64 `protobuf:"varint,6,opt,name=max_prepay_sat,json=maxPrepaySat,proto3" json:"max_prepay_sat,omitempty"` // //The maximum miner fee we will pay to sweep the swap on chain. Note that we //will not suggest a swap if the estimate is above the sweep limit set by //these parameters, and we use the current fee estimate to sweep on chain so //this value is only a cap placed on the amount we spend on fees in the case //where the swap needs to be claimed on chain, but fees have suddenly spiked. MaxMinerFeeSat uint64 `protobuf:"varint,7,opt,name=max_miner_fee_sat,json=maxMinerFeeSat,proto3" json:"max_miner_fee_sat,omitempty"` // //The number of blocks from the on-chain HTLC's confirmation height that it //should be swept within. SweepConfTarget int32 `protobuf:"varint,8,opt,name=sweep_conf_target,json=sweepConfTarget,proto3" json:"sweep_conf_target,omitempty"` // //The amount of time we require pass since a channel was part of a failed //swap due to off chain payment failure until it will be considered for swap //suggestions again, expressed in seconds. FailureBackoffSec uint64 `protobuf:"varint,9,opt,name=failure_backoff_sec,json=failureBackoffSec,proto3" json:"failure_backoff_sec,omitempty"` // //Set to true to enable automatic dispatch of swaps. All swaps will be limited //to the fee categories set by these parameters, and total expenditure will //be limited to the autoloop budget. Autoloop bool `protobuf:"varint,10,opt,name=autoloop,proto3" json:"autoloop,omitempty"` // //The total budget for automatically dispatched swaps since the budget start //time, expressed in satoshis. AutoloopBudgetSat uint64 `protobuf:"varint,11,opt,name=autoloop_budget_sat,json=autoloopBudgetSat,proto3" json:"autoloop_budget_sat,omitempty"` // //The start time for autoloop budget, expressed as a unix timestamp in //seconds. If this value is 0, the budget will be applied for all //automatically dispatched swaps. Swaps that were completed before this date //will not be included in budget calculations. AutoloopBudgetStartSec uint64 `` /* 133-byte string literal not displayed */ // //The maximum number of automatically dispatched swaps that we allow to be in //flight at any point in time. AutoMaxInFlight uint64 `protobuf:"varint,13,opt,name=auto_max_in_flight,json=autoMaxInFlight,proto3" json:"auto_max_in_flight,omitempty"` // //The minimum amount, expressed in satoshis, that the autoloop client will //dispatch a swap for. This value is subject to the server-side limits //specified by the LoopOutTerms endpoint. MinSwapAmount uint64 `protobuf:"varint,14,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` // //The maximum amount, expressed in satoshis, that the autoloop client will //dispatch a swap for. This value is subject to the server-side limits //specified by the LoopOutTerms endpoint. MaxSwapAmount uint64 `protobuf:"varint,15,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // //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"` // contains filtered or unexported fields }
func (*LiquidityParameters) Descriptor
deprecated
func (*LiquidityParameters) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityParameters.ProtoReflect.Descriptor instead.
func (*LiquidityParameters) GetAutoMaxInFlight ¶
func (x *LiquidityParameters) GetAutoMaxInFlight() uint64
func (*LiquidityParameters) GetAutoloop ¶
func (x *LiquidityParameters) GetAutoloop() bool
func (*LiquidityParameters) GetAutoloopBudgetSat ¶
func (x *LiquidityParameters) GetAutoloopBudgetSat() uint64
func (*LiquidityParameters) GetAutoloopBudgetStartSec ¶
func (x *LiquidityParameters) GetAutoloopBudgetStartSec() uint64
func (*LiquidityParameters) GetAutoloopDestAddress ¶
func (x *LiquidityParameters) GetAutoloopDestAddress() string
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 ListSwapsRequest ¶
type ListSwapsRequest struct {
// contains filtered or unexported fields
}
func (*ListSwapsRequest) Descriptor
deprecated
func (*ListSwapsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSwapsRequest.ProtoReflect.Descriptor instead.
func (*ListSwapsRequest) ProtoMessage ¶
func (*ListSwapsRequest) ProtoMessage()
func (*ListSwapsRequest) ProtoReflect ¶
func (x *ListSwapsRequest) ProtoReflect() protoreflect.Message
func (*ListSwapsRequest) Reset ¶
func (x *ListSwapsRequest) Reset()
func (*ListSwapsRequest) String ¶
func (x *ListSwapsRequest) String() string
type ListSwapsResponse ¶
type ListSwapsResponse struct { // //The list of all currently known swaps and their status. Swaps []*SwapStatus `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps,omitempty"` // contains filtered or unexported fields }
func (*ListSwapsResponse) Descriptor
deprecated
func (*ListSwapsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSwapsResponse.ProtoReflect.Descriptor instead.
func (*ListSwapsResponse) GetSwaps ¶
func (x *ListSwapsResponse) GetSwaps() []*SwapStatus
func (*ListSwapsResponse) ProtoMessage ¶
func (*ListSwapsResponse) ProtoMessage()
func (*ListSwapsResponse) ProtoReflect ¶
func (x *ListSwapsResponse) ProtoReflect() protoreflect.Message
func (*ListSwapsResponse) Reset ¶
func (x *ListSwapsResponse) Reset()
func (*ListSwapsResponse) String ¶
func (x *ListSwapsResponse) String() string
type LoopInRequest ¶
type LoopInRequest struct { // //Requested swap amount in sat. This does not include the swap and miner //fee. Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"` // //Maximum we are willing to pay the server for the swap. This value is not //disclosed in the swap initiation call, but if the server asks for a //higher fee, we abort the swap. Typically this value is taken from the //response of the GetQuote call. MaxSwapFee int64 `protobuf:"varint,2,opt,name=max_swap_fee,json=maxSwapFee,proto3" json:"max_swap_fee,omitempty"` // //Maximum in on-chain fees that we are willing to spend. If we want to //publish the on-chain htlc and the fee estimate turns out higher than this //value, we cancel the swap. // //max_miner_fee is typically taken from the response of the GetQuote call. MaxMinerFee int64 `protobuf:"varint,3,opt,name=max_miner_fee,json=maxMinerFee,proto3" json:"max_miner_fee,omitempty"` // //The last hop to use for the loop in swap. If empty, the last hop is selected //based on the lowest routing fee for the swap payment from the server. LastHop []byte `protobuf:"bytes,4,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"` // //If external_htlc is true, we expect the htlc to be published by an external //actor. ExternalHtlc bool `protobuf:"varint,5,opt,name=external_htlc,json=externalHtlc,proto3" json:"external_htlc,omitempty"` // //The number of blocks that the on chain htlc should confirm within. HtlcConfTarget int32 `protobuf:"varint,6,opt,name=htlc_conf_target,json=htlcConfTarget,proto3" json:"htlc_conf_target,omitempty"` // //An optional label for this swap. This field is limited to 500 characters //and may not be one of the reserved values in loop/labels Reserved list. Label string `protobuf:"bytes,7,opt,name=label,proto3" json:"label,omitempty"` // //An optional identification string that will be appended to the user agent //string sent to the server to give information about the usage of loop. This //initiator part is meant for user interfaces to add their name to give the //full picture of the binary used (loopd, LiT) and the method used for //triggering the swap (loop CLI, autolooper, LiT UI, other 3rd party UI). Initiator string `protobuf:"bytes,8,opt,name=initiator,proto3" json:"initiator,omitempty"` // //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: Do not use. LoopOutChannel uint64 `protobuf:"varint,8,opt,name=loop_out_channel,json=loopOutChannel,proto3" json:"loop_out_channel,omitempty"` // //A restriction on the channel set that may be used to loop out. The actual //channel(s) that will be used are selected based on the lowest routing fee //for the swap payment to the server. OutgoingChanSet []uint64 `protobuf:"varint,11,rep,packed,name=outgoing_chan_set,json=outgoingChanSet,proto3" json:"outgoing_chan_set,omitempty"` // //The number of blocks from the on-chain HTLC's confirmation height that it //should be swept within. SweepConfTarget int32 `protobuf:"varint,9,opt,name=sweep_conf_target,json=sweepConfTarget,proto3" json:"sweep_conf_target,omitempty"` // //The number of confirmations that we require for the on chain htlc that will //be published by the server before we reveal the preimage. HtlcConfirmations int32 `protobuf:"varint,13,opt,name=htlc_confirmations,json=htlcConfirmations,proto3" json:"htlc_confirmations,omitempty"` // //The latest time (in unix seconds) we allow the server to wait before //publishing the HTLC on chain. Setting this to a larger value will give the //server the opportunity to batch multiple swaps together, and wait for //low-fee periods before publishing the HTLC, potentially resulting in a //lower total swap fee. SwapPublicationDeadline uint64 `` /* 134-byte string literal not displayed */ // //An optional label for this swap. This field is limited to 500 characters //and may not start with the prefix [reserved], which is used to tag labels //produced by the daemon. Label string `protobuf:"bytes,12,opt,name=label,proto3" json:"label,omitempty"` // //An optional identification string that will be appended to the user agent //string sent to the server to give information about the usage of loop. This //initiator part is meant for user interfaces to add their name to give the //full picture of the binary used (loopd, LiT) and the method used for //triggering the swap (loop CLI, autolooper, LiT UI, other 3rd party UI). Initiator string `protobuf:"bytes,14,opt,name=initiator,proto3" json:"initiator,omitempty"` // contains filtered or unexported fields }
func (*LoopOutRequest) Descriptor
deprecated
func (*LoopOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoopOutRequest.ProtoReflect.Descriptor instead.
func (*LoopOutRequest) GetAmt ¶
func (x *LoopOutRequest) GetAmt() int64
func (*LoopOutRequest) GetDest ¶
func (x *LoopOutRequest) GetDest() string
func (*LoopOutRequest) GetHtlcConfirmations ¶
func (x *LoopOutRequest) GetHtlcConfirmations() int32
func (*LoopOutRequest) GetInitiator ¶
func (x *LoopOutRequest) GetInitiator() string
func (*LoopOutRequest) GetLabel ¶
func (x *LoopOutRequest) GetLabel() string
func (*LoopOutRequest) GetLoopOutChannel
deprecated
func (x *LoopOutRequest) GetLoopOutChannel() uint64
Deprecated: Do not use.
func (*LoopOutRequest) GetMaxMinerFee ¶
func (x *LoopOutRequest) GetMaxMinerFee() int64
func (*LoopOutRequest) GetMaxPrepayAmt ¶
func (x *LoopOutRequest) GetMaxPrepayAmt() int64
func (*LoopOutRequest) GetMaxPrepayRoutingFee ¶
func (x *LoopOutRequest) GetMaxPrepayRoutingFee() int64
func (*LoopOutRequest) GetMaxSwapFee ¶
func (x *LoopOutRequest) GetMaxSwapFee() int64
func (*LoopOutRequest) GetMaxSwapRoutingFee ¶
func (x *LoopOutRequest) GetMaxSwapRoutingFee() int64
func (*LoopOutRequest) GetOutgoingChanSet ¶
func (x *LoopOutRequest) GetOutgoingChanSet() []uint64
func (*LoopOutRequest) GetSwapPublicationDeadline ¶
func (x *LoopOutRequest) GetSwapPublicationDeadline() uint64
func (*LoopOutRequest) GetSweepConfTarget ¶
func (x *LoopOutRequest) GetSweepConfTarget() int32
func (*LoopOutRequest) ProtoMessage ¶
func (*LoopOutRequest) ProtoMessage()
func (*LoopOutRequest) ProtoReflect ¶
func (x *LoopOutRequest) ProtoReflect() protoreflect.Message
func (*LoopOutRequest) Reset ¶
func (x *LoopOutRequest) Reset()
func (*LoopOutRequest) String ¶
func (x *LoopOutRequest) String() string
type LsatToken ¶
type LsatToken struct { // //The base macaroon that was baked by the auth server. BaseMacaroon []byte `protobuf:"bytes,1,opt,name=base_macaroon,json=baseMacaroon,proto3" json:"base_macaroon,omitempty"` // //The payment hash of the payment that was paid to obtain the token. PaymentHash []byte `protobuf:"bytes,2,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"` // //The preimage of the payment hash, knowledge of this is proof that the //payment has been paid. If the preimage is set to all zeros, this means the //payment is still pending and the token is not yet fully valid. PaymentPreimage []byte `protobuf:"bytes,3,opt,name=payment_preimage,json=paymentPreimage,proto3" json:"payment_preimage,omitempty"` // //The amount of millisatoshis that was paid to get the token. AmountPaidMsat int64 `protobuf:"varint,4,opt,name=amount_paid_msat,json=amountPaidMsat,proto3" json:"amount_paid_msat,omitempty"` // //The amount of millisatoshis paid in routing fee to pay for the token. RoutingFeePaidMsat int64 `protobuf:"varint,5,opt,name=routing_fee_paid_msat,json=routingFeePaidMsat,proto3" json:"routing_fee_paid_msat,omitempty"` // //The creation time of the token as UNIX timestamp in seconds. TimeCreated int64 `protobuf:"varint,6,opt,name=time_created,json=timeCreated,proto3" json:"time_created,omitempty"` // //Indicates whether the token is expired or still valid. Expired bool `protobuf:"varint,7,opt,name=expired,proto3" json:"expired,omitempty"` // //Identifying attribute of this token in the store. Currently represents the //file name of the token where it's stored on the file system. StorageName string `protobuf:"bytes,8,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` // contains filtered or unexported fields }
func (*LsatToken) Descriptor
deprecated
func (*LsatToken) GetAmountPaidMsat ¶
func (*LsatToken) GetBaseMacaroon ¶
func (*LsatToken) GetExpired ¶
func (*LsatToken) GetPaymentHash ¶
func (*LsatToken) GetPaymentPreimage ¶
func (*LsatToken) GetRoutingFeePaidMsat ¶
func (*LsatToken) GetStorageName ¶
func (*LsatToken) GetTimeCreated ¶
func (*LsatToken) ProtoMessage ¶
func (*LsatToken) ProtoMessage()
func (*LsatToken) ProtoReflect ¶
func (x *LsatToken) 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: `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` //GetLsatTokens returns all LSAT tokens the daemon ever paid for. GetLsatTokens(ctx context.Context, in *TokensRequest, opts ...grpc.CallOption) (*TokensResponse, error) // loop: `getparams` //GetLiquidityParams gets the parameters that the daemon's liquidity manager //is currently configured with. This may be nil if nothing is configured. //[EXPERIMENTAL]: endpoint is subject to change. GetLiquidityParams(ctx context.Context, in *GetLiquidityParamsRequest, opts ...grpc.CallOption) (*LiquidityParameters, error) // loop: `setparams` //SetLiquidityParams sets a new set of parameters for the daemon's liquidity //manager. Note that the full set of parameters must be provided, because //this call fully overwrites our existing parameters. //[EXPERIMENTAL]: endpoint is subject to change. SetLiquidityParams(ctx context.Context, in *SetLiquidityParamsRequest, opts ...grpc.CallOption) (*SetLiquidityParamsResponse, error) // loop: `suggestswaps` //SuggestSwaps returns a list of recommended swaps based on the current //state of your node's channels and it's liquidity manager parameters. //Note that only loop out suggestions are currently supported. //[EXPERIMENTAL]: endpoint is subject to change. SuggestSwaps(ctx context.Context, in *SuggestSwapsRequest, opts ...grpc.CallOption) (*SuggestSwapsResponse, error) }
SwapClientClient is the client API for SwapClient service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://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: `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` //GetLsatTokens returns all LSAT tokens the daemon ever paid for. GetLsatTokens(context.Context, *TokensRequest) (*TokensResponse, error) // loop: `getparams` //GetLiquidityParams gets the parameters that the daemon's liquidity manager //is currently configured with. This may be nil if nothing is configured. //[EXPERIMENTAL]: endpoint is subject to change. GetLiquidityParams(context.Context, *GetLiquidityParamsRequest) (*LiquidityParameters, error) // loop: `setparams` //SetLiquidityParams sets a new set of parameters for the daemon's liquidity //manager. Note that the full set of parameters must be provided, because //this call fully overwrites our existing parameters. //[EXPERIMENTAL]: endpoint is subject to change. SetLiquidityParams(context.Context, *SetLiquidityParamsRequest) (*SetLiquidityParamsResponse, error) // loop: `suggestswaps` //SuggestSwaps returns a list of recommended swaps based on the current //state of your node's channels and it's liquidity manager parameters. //Note that only loop out suggestions are currently supported. //[EXPERIMENTAL]: endpoint is subject to change. SuggestSwaps(context.Context, *SuggestSwapsRequest) (*SuggestSwapsResponse, error) // 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: Do not use. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // //Swap identifier to track status in the update stream that is returned from //the Start() call. Currently this is the hash that locks the htlcs. IdBytes []byte `protobuf:"bytes,3,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"` // //DEPRECATED. This field stores the address of the onchain htlc, but //depending on the request, the semantics are different. //- For internal loop-in htlc_address contains the address of the //native segwit (P2WSH) htlc. /// - For loop-out htlc_address always contains the native segwit (P2WSH) //htlc address. // // Deprecated: Do not use. HtlcAddress string `protobuf:"bytes,2,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"` // //The 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: Do not use.
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: Do not use.
func (*SwapResponse) GetIdBytes ¶
func (x *SwapResponse) GetIdBytes() []byte
func (*SwapResponse) GetServerMessage ¶
func (x *SwapResponse) GetServerMessage() string
func (*SwapResponse) ProtoMessage ¶
func (*SwapResponse) ProtoMessage()
func (*SwapResponse) ProtoReflect ¶
func (x *SwapResponse) ProtoReflect() protoreflect.Message
func (*SwapResponse) Reset ¶
func (x *SwapResponse) Reset()
func (*SwapResponse) String ¶
func (x *SwapResponse) String() string
type 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: Do not use. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // //Swap identifier to track status in the update stream that is returned from //the Start() call. Currently this is the hash that locks the htlcs. IdBytes []byte `protobuf:"bytes,11,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"` // //The type of the swap. Type SwapType `protobuf:"varint,3,opt,name=type,proto3,enum=looprpc.SwapType" json:"type,omitempty"` // //State the swap is currently in, see State enum. State SwapState `protobuf:"varint,4,opt,name=state,proto3,enum=looprpc.SwapState" json:"state,omitempty"` // //A failure reason for the swap, only set if the swap has failed. FailureReason FailureReason `` /* 129-byte string literal not displayed */ // //Initiation time of the swap. InitiationTime int64 `protobuf:"varint,5,opt,name=initiation_time,json=initiationTime,proto3" json:"initiation_time,omitempty"` // //Initiation time of the swap. LastUpdateTime int64 `protobuf:"varint,6,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` // //DEPRECATED: This field stores the address of the onchain htlc. //- For internal loop-in htlc_address contains the address of the //native segwit (P2WSH) htlc. //- For loop-out htlc_address always contains the native segwit (P2WSH) //htlc address. // // Deprecated: Do not use. HtlcAddress string `protobuf:"bytes,7,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"` // HTLC address (native segwit), used in loop-in and loop-out swaps. HtlcAddressP2Wsh string `protobuf:"bytes,12,opt,name=htlc_address_p2wsh,json=htlcAddressP2wsh,proto3" json:"htlc_address_p2wsh,omitempty"` // 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: Do not use.
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: Do not use.
func (*SwapStatus) GetIdBytes ¶
func (x *SwapStatus) GetIdBytes() []byte
func (*SwapStatus) GetInitiationTime ¶
func (x *SwapStatus) GetInitiationTime() int64
func (*SwapStatus) GetLabel ¶
func (x *SwapStatus) GetLabel() string
func (*SwapStatus) 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 []*LsatToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` // contains filtered or unexported fields }
func (*TokensResponse) Descriptor
deprecated
func (*TokensResponse) Descriptor() ([]byte, []int)
Deprecated: Use TokensResponse.ProtoReflect.Descriptor instead.
func (*TokensResponse) GetTokens ¶
func (x *TokensResponse) GetTokens() []*LsatToken
func (*TokensResponse) ProtoMessage ¶
func (*TokensResponse) ProtoMessage()
func (*TokensResponse) ProtoReflect ¶
func (x *TokensResponse) ProtoReflect() protoreflect.Message
func (*TokensResponse) Reset ¶
func (x *TokensResponse) Reset()
func (*TokensResponse) String ¶
func (x *TokensResponse) String() string
type UnimplementedDebugServer ¶
type UnimplementedDebugServer struct { }
UnimplementedDebugServer 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) 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) 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.