Documentation
¶
Index ¶
- Variables
- func RegisterSwapServerServer(s grpc.ServiceRegistrar, srv SwapServerServer)
- type CancelLoopOutSwapRequest
- func (*CancelLoopOutSwapRequest) Descriptor() ([]byte, []int)deprecated
- func (m *CancelLoopOutSwapRequest) GetCancelInfo() isCancelLoopOutSwapRequest_CancelInfo
- func (x *CancelLoopOutSwapRequest) GetPaymentAddress() []byte
- func (x *CancelLoopOutSwapRequest) GetProtocolVersion() ProtocolVersion
- func (x *CancelLoopOutSwapRequest) GetRouteCancel() *RouteCancel
- func (x *CancelLoopOutSwapRequest) GetSwapHash() []byte
- func (*CancelLoopOutSwapRequest) ProtoMessage()
- func (x *CancelLoopOutSwapRequest) ProtoReflect() protoreflect.Message
- func (x *CancelLoopOutSwapRequest) Reset()
- func (x *CancelLoopOutSwapRequest) String() string
- type CancelLoopOutSwapRequest_RouteCancel
- type CancelLoopOutSwapResponse
- type HopHint
- func (*HopHint) Descriptor() ([]byte, []int)deprecated
- func (x *HopHint) GetChanId() uint64
- func (x *HopHint) GetCltvExpiryDelta() uint32
- func (x *HopHint) GetFeeBaseMsat() uint32
- func (x *HopHint) GetFeeProportionalMillionths() uint32
- func (x *HopHint) GetNodeId() string
- func (*HopHint) ProtoMessage()
- func (x *HopHint) ProtoReflect() protoreflect.Message
- func (x *HopHint) Reset()
- func (x *HopHint) String() string
- type HtlcAttempt
- type MuSig2SignSweepReq
- func (*MuSig2SignSweepReq) Descriptor() ([]byte, []int)deprecated
- func (x *MuSig2SignSweepReq) GetNonce() []byte
- func (x *MuSig2SignSweepReq) GetPaymentAddress() []byte
- func (x *MuSig2SignSweepReq) GetProtocolVersion() ProtocolVersion
- func (x *MuSig2SignSweepReq) GetSwapHash() []byte
- func (x *MuSig2SignSweepReq) GetSweepTxPsbt() []byte
- func (*MuSig2SignSweepReq) ProtoMessage()
- func (x *MuSig2SignSweepReq) ProtoReflect() protoreflect.Message
- func (x *MuSig2SignSweepReq) Reset()
- func (x *MuSig2SignSweepReq) String() string
- type MuSig2SignSweepRes
- func (*MuSig2SignSweepRes) Descriptor() ([]byte, []int)deprecated
- func (x *MuSig2SignSweepRes) GetNonce() []byte
- func (x *MuSig2SignSweepRes) GetPartialSignature() []byte
- func (*MuSig2SignSweepRes) ProtoMessage()
- func (x *MuSig2SignSweepRes) ProtoReflect() protoreflect.Message
- func (x *MuSig2SignSweepRes) Reset()
- func (x *MuSig2SignSweepRes) String() string
- type PaymentFailureReason
- func (PaymentFailureReason) Descriptor() protoreflect.EnumDescriptor
- func (x PaymentFailureReason) Enum() *PaymentFailureReason
- func (PaymentFailureReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x PaymentFailureReason) Number() protoreflect.EnumNumber
- func (x PaymentFailureReason) String() string
- func (PaymentFailureReason) Type() protoreflect.EnumType
- type ProtocolVersion
- func (ProtocolVersion) Descriptor() protoreflect.EnumDescriptor
- func (x ProtocolVersion) Enum() *ProtocolVersion
- func (ProtocolVersion) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtocolVersion) Number() protoreflect.EnumNumber
- func (x ProtocolVersion) String() string
- func (ProtocolVersion) Type() protoreflect.EnumType
- type RecommendRoutingPluginReq
- func (*RecommendRoutingPluginReq) Descriptor() ([]byte, []int)deprecated
- func (x *RecommendRoutingPluginReq) GetPaymentAddress() []byte
- func (x *RecommendRoutingPluginReq) GetProtocolVersion() ProtocolVersion
- func (x *RecommendRoutingPluginReq) GetSwapHash() []byte
- func (*RecommendRoutingPluginReq) ProtoMessage()
- func (x *RecommendRoutingPluginReq) ProtoReflect() protoreflect.Message
- func (x *RecommendRoutingPluginReq) Reset()
- func (x *RecommendRoutingPluginReq) String() string
- type RecommendRoutingPluginRes
- func (*RecommendRoutingPluginRes) Descriptor() ([]byte, []int)deprecated
- func (x *RecommendRoutingPluginRes) GetPlugin() RoutingPlugin
- func (*RecommendRoutingPluginRes) ProtoMessage()
- func (x *RecommendRoutingPluginRes) ProtoReflect() protoreflect.Message
- func (x *RecommendRoutingPluginRes) Reset()
- func (x *RecommendRoutingPluginRes) String() string
- type ReportRoutingResultReq
- func (*ReportRoutingResultReq) Descriptor() ([]byte, []int)deprecated
- func (x *ReportRoutingResultReq) GetAttempts() int32
- func (x *ReportRoutingResultReq) GetPaymentAddress() []byte
- func (x *ReportRoutingResultReq) GetPlugin() RoutingPlugin
- func (x *ReportRoutingResultReq) GetProtocolVersion() ProtocolVersion
- func (x *ReportRoutingResultReq) GetSuccess() bool
- func (x *ReportRoutingResultReq) GetSwapHash() []byte
- func (x *ReportRoutingResultReq) GetTotalTime() int64
- func (*ReportRoutingResultReq) ProtoMessage()
- func (x *ReportRoutingResultReq) ProtoReflect() protoreflect.Message
- func (x *ReportRoutingResultReq) Reset()
- func (x *ReportRoutingResultReq) String() string
- type ReportRoutingResultRes
- type RouteCancel
- func (*RouteCancel) Descriptor() ([]byte, []int)deprecated
- func (x *RouteCancel) GetAttempts() []*HtlcAttempt
- func (x *RouteCancel) GetFailure() PaymentFailureReason
- func (x *RouteCancel) GetRouteType() RoutePaymentType
- func (*RouteCancel) ProtoMessage()
- func (x *RouteCancel) ProtoReflect() protoreflect.Message
- func (x *RouteCancel) Reset()
- func (x *RouteCancel) String() string
- type RouteHint
- type RoutePaymentType
- func (RoutePaymentType) Descriptor() protoreflect.EnumDescriptor
- func (x RoutePaymentType) Enum() *RoutePaymentType
- func (RoutePaymentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RoutePaymentType) Number() protoreflect.EnumNumber
- func (x RoutePaymentType) String() string
- func (RoutePaymentType) Type() protoreflect.EnumType
- type RoutingPlugin
- func (RoutingPlugin) Descriptor() protoreflect.EnumDescriptor
- func (x RoutingPlugin) Enum() *RoutingPlugin
- func (RoutingPlugin) EnumDescriptor() ([]byte, []int)deprecated
- func (x RoutingPlugin) Number() protoreflect.EnumNumber
- func (x RoutingPlugin) String() string
- func (RoutingPlugin) Type() protoreflect.EnumType
- type ServerLoopInQuoteRequest
- func (*ServerLoopInQuoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopInQuoteRequest) GetAmt() uint64
- func (x *ServerLoopInQuoteRequest) GetLastHop() []byte
- func (x *ServerLoopInQuoteRequest) GetProtocolVersion() ProtocolVersion
- func (x *ServerLoopInQuoteRequest) GetPubkey() []byte
- func (x *ServerLoopInQuoteRequest) GetRouteHints() []*RouteHint
- func (*ServerLoopInQuoteRequest) ProtoMessage()
- func (x *ServerLoopInQuoteRequest) ProtoReflect() protoreflect.Message
- func (x *ServerLoopInQuoteRequest) Reset()
- func (x *ServerLoopInQuoteRequest) String() string
- type ServerLoopInQuoteResponse
- func (*ServerLoopInQuoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopInQuoteResponse) GetCltvDelta() int32
- func (x *ServerLoopInQuoteResponse) GetMaxSwapAmount() uint64deprecated
- func (x *ServerLoopInQuoteResponse) GetMinSwapAmount() uint64deprecated
- func (x *ServerLoopInQuoteResponse) GetSwapFee() int64
- func (x *ServerLoopInQuoteResponse) GetSwapFeeRate() int64deprecated
- func (*ServerLoopInQuoteResponse) ProtoMessage()
- func (x *ServerLoopInQuoteResponse) ProtoReflect() protoreflect.Message
- func (x *ServerLoopInQuoteResponse) Reset()
- func (x *ServerLoopInQuoteResponse) String() string
- type ServerLoopInRequest
- func (*ServerLoopInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopInRequest) GetAmt() uint64
- func (x *ServerLoopInRequest) GetLastHop() []byte
- func (x *ServerLoopInRequest) GetProbeInvoice() string
- func (x *ServerLoopInRequest) GetProtocolVersion() ProtocolVersion
- func (x *ServerLoopInRequest) GetSenderInternalPubkey() []byte
- func (x *ServerLoopInRequest) GetSenderKey() []byte
- func (x *ServerLoopInRequest) GetSwapHash() []byte
- func (x *ServerLoopInRequest) GetSwapInvoice() string
- func (x *ServerLoopInRequest) GetUserAgent() string
- func (*ServerLoopInRequest) ProtoMessage()
- func (x *ServerLoopInRequest) ProtoReflect() protoreflect.Message
- func (x *ServerLoopInRequest) Reset()
- func (x *ServerLoopInRequest) String() string
- type ServerLoopInResponse
- func (*ServerLoopInResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopInResponse) GetExpiry() int32
- func (x *ServerLoopInResponse) GetReceiverInternalPubkey() []byte
- func (x *ServerLoopInResponse) GetReceiverKey() []byte
- func (x *ServerLoopInResponse) GetServerMessage() string
- func (*ServerLoopInResponse) ProtoMessage()
- func (x *ServerLoopInResponse) ProtoReflect() protoreflect.Message
- func (x *ServerLoopInResponse) Reset()
- func (x *ServerLoopInResponse) String() string
- type ServerLoopInTerms
- func (*ServerLoopInTerms) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopInTerms) GetMaxSwapAmount() uint64
- func (x *ServerLoopInTerms) GetMinSwapAmount() uint64
- func (*ServerLoopInTerms) ProtoMessage()
- func (x *ServerLoopInTerms) ProtoReflect() protoreflect.Message
- func (x *ServerLoopInTerms) Reset()
- func (x *ServerLoopInTerms) String() string
- type ServerLoopInTermsRequest
- func (*ServerLoopInTermsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopInTermsRequest) GetProtocolVersion() ProtocolVersion
- func (*ServerLoopInTermsRequest) ProtoMessage()
- func (x *ServerLoopInTermsRequest) ProtoReflect() protoreflect.Message
- func (x *ServerLoopInTermsRequest) Reset()
- func (x *ServerLoopInTermsRequest) String() string
- type ServerLoopOutPushPreimageRequest
- func (*ServerLoopOutPushPreimageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopOutPushPreimageRequest) GetPreimage() []byte
- func (x *ServerLoopOutPushPreimageRequest) GetProtocolVersion() ProtocolVersion
- func (*ServerLoopOutPushPreimageRequest) ProtoMessage()
- func (x *ServerLoopOutPushPreimageRequest) ProtoReflect() protoreflect.Message
- func (x *ServerLoopOutPushPreimageRequest) Reset()
- func (x *ServerLoopOutPushPreimageRequest) String() string
- type ServerLoopOutPushPreimageResponse
- func (*ServerLoopOutPushPreimageResponse) Descriptor() ([]byte, []int)deprecated
- func (*ServerLoopOutPushPreimageResponse) ProtoMessage()
- func (x *ServerLoopOutPushPreimageResponse) ProtoReflect() protoreflect.Message
- func (x *ServerLoopOutPushPreimageResponse) Reset()
- func (x *ServerLoopOutPushPreimageResponse) String() string
- type ServerLoopOutQuote
- func (*ServerLoopOutQuote) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopOutQuote) GetCltvDelta() int32deprecated
- func (x *ServerLoopOutQuote) GetMaxSwapAmount() uint64deprecated
- func (x *ServerLoopOutQuote) GetMinSwapAmount() uint64deprecated
- func (x *ServerLoopOutQuote) GetPrepayAmt() uint64
- func (x *ServerLoopOutQuote) GetSwapFee() int64
- func (x *ServerLoopOutQuote) GetSwapFeeRate() int64deprecated
- func (x *ServerLoopOutQuote) GetSwapPaymentDest() string
- func (*ServerLoopOutQuote) ProtoMessage()
- func (x *ServerLoopOutQuote) ProtoReflect() protoreflect.Message
- func (x *ServerLoopOutQuote) Reset()
- func (x *ServerLoopOutQuote) String() string
- type ServerLoopOutQuoteRequest
- func (*ServerLoopOutQuoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopOutQuoteRequest) GetAmt() uint64
- func (x *ServerLoopOutQuoteRequest) GetExpiry() int32
- func (x *ServerLoopOutQuoteRequest) GetProtocolVersion() ProtocolVersion
- func (x *ServerLoopOutQuoteRequest) GetSwapPublicationDeadline() int64
- func (*ServerLoopOutQuoteRequest) ProtoMessage()
- func (x *ServerLoopOutQuoteRequest) ProtoReflect() protoreflect.Message
- func (x *ServerLoopOutQuoteRequest) Reset()
- func (x *ServerLoopOutQuoteRequest) String() string
- type ServerLoopOutRequest
- func (*ServerLoopOutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopOutRequest) GetAmt() uint64
- func (x *ServerLoopOutRequest) GetExpiry() int32
- func (x *ServerLoopOutRequest) GetProtocolVersion() ProtocolVersion
- func (x *ServerLoopOutRequest) GetReceiverKey() []byte
- func (x *ServerLoopOutRequest) GetSwapHash() []byte
- func (x *ServerLoopOutRequest) GetSwapPublicationDeadline() int64
- func (x *ServerLoopOutRequest) GetUserAgent() string
- func (*ServerLoopOutRequest) ProtoMessage()
- func (x *ServerLoopOutRequest) ProtoReflect() protoreflect.Message
- func (x *ServerLoopOutRequest) Reset()
- func (x *ServerLoopOutRequest) String() string
- type ServerLoopOutResponse
- func (*ServerLoopOutResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopOutResponse) GetExpiry() int32deprecated
- func (x *ServerLoopOutResponse) GetPrepayInvoice() string
- func (x *ServerLoopOutResponse) GetSenderKey() []byte
- func (x *ServerLoopOutResponse) GetServerMessage() string
- func (x *ServerLoopOutResponse) GetSwapInvoice() string
- func (*ServerLoopOutResponse) ProtoMessage()
- func (x *ServerLoopOutResponse) ProtoReflect() protoreflect.Message
- func (x *ServerLoopOutResponse) Reset()
- func (x *ServerLoopOutResponse) String() string
- type ServerLoopOutTerms
- func (*ServerLoopOutTerms) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopOutTerms) GetMaxCltvDelta() int32
- func (x *ServerLoopOutTerms) GetMaxSwapAmount() uint64
- func (x *ServerLoopOutTerms) GetMinCltvDelta() int32
- func (x *ServerLoopOutTerms) GetMinSwapAmount() uint64
- func (*ServerLoopOutTerms) ProtoMessage()
- func (x *ServerLoopOutTerms) ProtoReflect() protoreflect.Message
- func (x *ServerLoopOutTerms) Reset()
- func (x *ServerLoopOutTerms) String() string
- type ServerLoopOutTermsRequest
- func (*ServerLoopOutTermsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoopOutTermsRequest) GetProtocolVersion() ProtocolVersion
- func (*ServerLoopOutTermsRequest) ProtoMessage()
- func (x *ServerLoopOutTermsRequest) ProtoReflect() protoreflect.Message
- func (x *ServerLoopOutTermsRequest) Reset()
- func (x *ServerLoopOutTermsRequest) String() string
- type ServerProbeRequest
- func (*ServerProbeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerProbeRequest) GetAmt() uint64
- func (x *ServerProbeRequest) GetLastHop() []byte
- func (x *ServerProbeRequest) GetProtocolVersion() ProtocolVersion
- func (x *ServerProbeRequest) GetRouteHints() []*RouteHint
- func (x *ServerProbeRequest) GetTarget() []byte
- func (*ServerProbeRequest) ProtoMessage()
- func (x *ServerProbeRequest) ProtoReflect() protoreflect.Message
- func (x *ServerProbeRequest) Reset()
- func (x *ServerProbeRequest) String() string
- type ServerProbeResponse
- type ServerPushKeyReq
- func (*ServerPushKeyReq) Descriptor() ([]byte, []int)deprecated
- func (x *ServerPushKeyReq) GetInternalPrivkey() []byte
- func (x *ServerPushKeyReq) GetProtocolVersion() ProtocolVersion
- func (x *ServerPushKeyReq) GetSwapHash() []byte
- func (*ServerPushKeyReq) ProtoMessage()
- func (x *ServerPushKeyReq) ProtoReflect() protoreflect.Message
- func (x *ServerPushKeyReq) Reset()
- func (x *ServerPushKeyReq) String() string
- type ServerPushKeyRes
- type ServerSwapState
- func (ServerSwapState) Descriptor() protoreflect.EnumDescriptor
- func (x ServerSwapState) Enum() *ServerSwapState
- func (ServerSwapState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServerSwapState) Number() protoreflect.EnumNumber
- func (x ServerSwapState) String() string
- func (ServerSwapState) Type() protoreflect.EnumType
- type SubscribeLoopInUpdatesResponse
- func (*SubscribeLoopInUpdatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeLoopInUpdatesResponse) GetState() ServerSwapState
- func (x *SubscribeLoopInUpdatesResponse) GetTimestampNs() int64
- func (*SubscribeLoopInUpdatesResponse) ProtoMessage()
- func (x *SubscribeLoopInUpdatesResponse) ProtoReflect() protoreflect.Message
- func (x *SubscribeLoopInUpdatesResponse) Reset()
- func (x *SubscribeLoopInUpdatesResponse) String() string
- type SubscribeLoopOutUpdatesResponse
- func (*SubscribeLoopOutUpdatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeLoopOutUpdatesResponse) GetState() ServerSwapState
- func (x *SubscribeLoopOutUpdatesResponse) GetTimestampNs() int64
- func (*SubscribeLoopOutUpdatesResponse) ProtoMessage()
- func (x *SubscribeLoopOutUpdatesResponse) ProtoReflect() protoreflect.Message
- func (x *SubscribeLoopOutUpdatesResponse) Reset()
- func (x *SubscribeLoopOutUpdatesResponse) String() string
- type SubscribeUpdatesRequest
- func (*SubscribeUpdatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeUpdatesRequest) GetProtocolVersion() ProtocolVersion
- func (x *SubscribeUpdatesRequest) GetSwapHash() []byte
- func (*SubscribeUpdatesRequest) ProtoMessage()
- func (x *SubscribeUpdatesRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeUpdatesRequest) Reset()
- func (x *SubscribeUpdatesRequest) String() string
- type SwapServerClient
- type SwapServerServer
- type SwapServer_SubscribeLoopInUpdatesClient
- type SwapServer_SubscribeLoopInUpdatesServer
- type SwapServer_SubscribeLoopOutUpdatesClient
- type SwapServer_SubscribeLoopOutUpdatesServer
- type UnimplementedSwapServerServer
- func (UnimplementedSwapServerServer) CancelLoopOutSwap(context.Context, *CancelLoopOutSwapRequest) (*CancelLoopOutSwapResponse, error)
- func (UnimplementedSwapServerServer) LoopInQuote(context.Context, *ServerLoopInQuoteRequest) (*ServerLoopInQuoteResponse, error)
- func (UnimplementedSwapServerServer) LoopInTerms(context.Context, *ServerLoopInTermsRequest) (*ServerLoopInTerms, error)
- func (UnimplementedSwapServerServer) LoopOutPushPreimage(context.Context, *ServerLoopOutPushPreimageRequest) (*ServerLoopOutPushPreimageResponse, error)
- func (UnimplementedSwapServerServer) LoopOutQuote(context.Context, *ServerLoopOutQuoteRequest) (*ServerLoopOutQuote, error)
- func (UnimplementedSwapServerServer) LoopOutTerms(context.Context, *ServerLoopOutTermsRequest) (*ServerLoopOutTerms, error)
- func (UnimplementedSwapServerServer) MuSig2SignSweep(context.Context, *MuSig2SignSweepReq) (*MuSig2SignSweepRes, error)
- func (UnimplementedSwapServerServer) NewLoopInSwap(context.Context, *ServerLoopInRequest) (*ServerLoopInResponse, error)
- func (UnimplementedSwapServerServer) NewLoopOutSwap(context.Context, *ServerLoopOutRequest) (*ServerLoopOutResponse, error)
- func (UnimplementedSwapServerServer) Probe(context.Context, *ServerProbeRequest) (*ServerProbeResponse, error)
- func (UnimplementedSwapServerServer) PushKey(context.Context, *ServerPushKeyReq) (*ServerPushKeyRes, error)
- func (UnimplementedSwapServerServer) RecommendRoutingPlugin(context.Context, *RecommendRoutingPluginReq) (*RecommendRoutingPluginRes, error)
- func (UnimplementedSwapServerServer) ReportRoutingResult(context.Context, *ReportRoutingResultReq) (*ReportRoutingResultRes, error)
- func (UnimplementedSwapServerServer) SubscribeLoopInUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopInUpdatesServer) error
- func (UnimplementedSwapServerServer) SubscribeLoopOutUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopOutUpdatesServer) error
- type UnsafeSwapServerServer
Constants ¶
This section is empty.
Variables ¶
var ( ProtocolVersion_name = map[int32]string{ 0: "LEGACY", 1: "MULTI_LOOP_OUT", 2: "NATIVE_SEGWIT_LOOP_IN", 3: "PREIMAGE_PUSH_LOOP_OUT", 4: "USER_EXPIRY_LOOP_OUT", 5: "HTLC_V2", 6: "MULTI_LOOP_IN", 7: "LOOP_OUT_CANCEL", 8: "PROBE", 9: "ROUTING_PLUGIN", 10: "HTLC_V3", 11: "MUSIG2", } ProtocolVersion_value = map[string]int32{ "LEGACY": 0, "MULTI_LOOP_OUT": 1, "NATIVE_SEGWIT_LOOP_IN": 2, "PREIMAGE_PUSH_LOOP_OUT": 3, "USER_EXPIRY_LOOP_OUT": 4, "HTLC_V2": 5, "MULTI_LOOP_IN": 6, "LOOP_OUT_CANCEL": 7, "PROBE": 8, "ROUTING_PLUGIN": 9, "HTLC_V3": 10, "MUSIG2": 11, } )
Enum value maps for ProtocolVersion.
var ( ServerSwapState_name = map[int32]string{ 0: "SERVER_INITIATED", 1: "SERVER_HTLC_PUBLISHED", 2: "SERVER_SUCCESS", 3: "SERVER_FAILED_UNKNOWN", 4: "SERVER_FAILED_NO_HTLC", 5: "SERVER_FAILED_INVALID_HTLC_AMOUNT", 6: "SERVER_FAILED_OFF_CHAIN_TIMEOUT", 7: "SERVER_FAILED_TIMEOUT", 8: "SERVER_FAILED_SWAP_DEADLINE", 9: "SERVER_FAILED_HTLC_PUBLICATION", 10: "SERVER_TIMEOUT_PUBLISHED", 11: "SERVER_UNEXPECTED_FAILURE", 12: "SERVER_HTLC_CONFIRMED", 13: "SERVER_CLIENT_PREPAY_CANCEL", 14: "SERVER_CLIENT_INVOICE_CANCEL", 15: "SERVER_FAILED_MULTIPLE_SWAP_SCRIPTS", 16: "SERVER_FAILED_INITIALIZATION", } ServerSwapState_value = map[string]int32{ "SERVER_INITIATED": 0, "SERVER_HTLC_PUBLISHED": 1, "SERVER_SUCCESS": 2, "SERVER_FAILED_UNKNOWN": 3, "SERVER_FAILED_NO_HTLC": 4, "SERVER_FAILED_INVALID_HTLC_AMOUNT": 5, "SERVER_FAILED_OFF_CHAIN_TIMEOUT": 6, "SERVER_FAILED_TIMEOUT": 7, "SERVER_FAILED_SWAP_DEADLINE": 8, "SERVER_FAILED_HTLC_PUBLICATION": 9, "SERVER_TIMEOUT_PUBLISHED": 10, "SERVER_UNEXPECTED_FAILURE": 11, "SERVER_HTLC_CONFIRMED": 12, "SERVER_CLIENT_PREPAY_CANCEL": 13, "SERVER_CLIENT_INVOICE_CANCEL": 14, "SERVER_FAILED_MULTIPLE_SWAP_SCRIPTS": 15, "SERVER_FAILED_INITIALIZATION": 16, } )
Enum value maps for ServerSwapState.
var ( RoutePaymentType_name = map[int32]string{ 0: "ROUTE_UNKNOWN", 1: "PREPAY_ROUTE", 2: "INVOICE_ROUTE", } RoutePaymentType_value = map[string]int32{ "ROUTE_UNKNOWN": 0, "PREPAY_ROUTE": 1, "INVOICE_ROUTE": 2, } )
Enum value maps for RoutePaymentType.
var ( PaymentFailureReason_name = map[int32]string{ 0: "LND_FAILURE_REASON_NONE", 1: "LND_FAILURE_REASON_TIMEOUT", 2: "LND_FAILURE_REASON_NO_ROUTE", 3: "LND_FAILURE_REASON_ERROR", 4: "LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS", 5: "LND_FAILURE_REASON_INSUFFICIENT_BALANCE", } PaymentFailureReason_value = map[string]int32{ "LND_FAILURE_REASON_NONE": 0, "LND_FAILURE_REASON_TIMEOUT": 1, "LND_FAILURE_REASON_NO_ROUTE": 2, "LND_FAILURE_REASON_ERROR": 3, "LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS": 4, "LND_FAILURE_REASON_INSUFFICIENT_BALANCE": 5, } )
Enum value maps for PaymentFailureReason.
var ( RoutingPlugin_name = map[int32]string{ 0: "NONE", 1: "LOW_HIGH", } RoutingPlugin_value = map[string]int32{ "NONE": 0, "LOW_HIGH": 1, } )
Enum value maps for RoutingPlugin.
var File_common_proto protoreflect.FileDescriptor
var File_server_proto protoreflect.FileDescriptor
var SwapServer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "looprpc.SwapServer", HandlerType: (*SwapServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LoopOutTerms", Handler: _SwapServer_LoopOutTerms_Handler, }, { MethodName: "NewLoopOutSwap", Handler: _SwapServer_NewLoopOutSwap_Handler, }, { MethodName: "LoopOutPushPreimage", Handler: _SwapServer_LoopOutPushPreimage_Handler, }, { MethodName: "LoopOutQuote", Handler: _SwapServer_LoopOutQuote_Handler, }, { MethodName: "LoopInTerms", Handler: _SwapServer_LoopInTerms_Handler, }, { MethodName: "NewLoopInSwap", Handler: _SwapServer_NewLoopInSwap_Handler, }, { MethodName: "LoopInQuote", Handler: _SwapServer_LoopInQuote_Handler, }, { MethodName: "CancelLoopOutSwap", Handler: _SwapServer_CancelLoopOutSwap_Handler, }, { MethodName: "Probe", Handler: _SwapServer_Probe_Handler, }, { MethodName: "RecommendRoutingPlugin", Handler: _SwapServer_RecommendRoutingPlugin_Handler, }, { MethodName: "ReportRoutingResult", Handler: _SwapServer_ReportRoutingResult_Handler, }, { MethodName: "MuSig2SignSweep", Handler: _SwapServer_MuSig2SignSweep_Handler, }, { MethodName: "PushKey", Handler: _SwapServer_PushKey_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SubscribeLoopOutUpdates", Handler: _SwapServer_SubscribeLoopOutUpdates_Handler, ServerStreams: true, }, { StreamName: "SubscribeLoopInUpdates", Handler: _SwapServer_SubscribeLoopInUpdates_Handler, ServerStreams: true, }, }, Metadata: "server.proto", }
SwapServer_ServiceDesc is the grpc.ServiceDesc for SwapServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSwapServerServer ¶
func RegisterSwapServerServer(s grpc.ServiceRegistrar, srv SwapServerServer)
Types ¶
type CancelLoopOutSwapRequest ¶
type CancelLoopOutSwapRequest struct {
// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// The swap hash.
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
// The payment address for the swap invoice, used to ensure that only the
// swap owner can cancel the payment.
PaymentAddress []byte `protobuf:"bytes,3,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
// Additional information about the swap cancelation.
//
// Types that are assignable to CancelInfo:
// *CancelLoopOutSwapRequest_RouteCancel
CancelInfo isCancelLoopOutSwapRequest_CancelInfo `protobuf_oneof:"cancel_info"`
// contains filtered or unexported fields
}
func (*CancelLoopOutSwapRequest) Descriptor
deprecated
func (*CancelLoopOutSwapRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelLoopOutSwapRequest.ProtoReflect.Descriptor instead.
func (*CancelLoopOutSwapRequest) GetCancelInfo ¶
func (m *CancelLoopOutSwapRequest) GetCancelInfo() isCancelLoopOutSwapRequest_CancelInfo
func (*CancelLoopOutSwapRequest) GetPaymentAddress ¶
func (x *CancelLoopOutSwapRequest) GetPaymentAddress() []byte
func (*CancelLoopOutSwapRequest) GetProtocolVersion ¶
func (x *CancelLoopOutSwapRequest) GetProtocolVersion() ProtocolVersion
func (*CancelLoopOutSwapRequest) GetRouteCancel ¶
func (x *CancelLoopOutSwapRequest) GetRouteCancel() *RouteCancel
func (*CancelLoopOutSwapRequest) GetSwapHash ¶
func (x *CancelLoopOutSwapRequest) GetSwapHash() []byte
func (*CancelLoopOutSwapRequest) ProtoMessage ¶
func (*CancelLoopOutSwapRequest) ProtoMessage()
func (*CancelLoopOutSwapRequest) ProtoReflect ¶
func (x *CancelLoopOutSwapRequest) ProtoReflect() protoreflect.Message
func (*CancelLoopOutSwapRequest) Reset ¶
func (x *CancelLoopOutSwapRequest) Reset()
func (*CancelLoopOutSwapRequest) String ¶
func (x *CancelLoopOutSwapRequest) String() string
type CancelLoopOutSwapRequest_RouteCancel ¶
type CancelLoopOutSwapRequest_RouteCancel struct {
RouteCancel *RouteCancel `protobuf:"bytes,5,opt,name=route_cancel,json=routeCancel,proto3,oneof"`
}
type CancelLoopOutSwapResponse ¶
type CancelLoopOutSwapResponse struct {
// contains filtered or unexported fields
}
func (*CancelLoopOutSwapResponse) Descriptor
deprecated
func (*CancelLoopOutSwapResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelLoopOutSwapResponse.ProtoReflect.Descriptor instead.
func (*CancelLoopOutSwapResponse) ProtoMessage ¶
func (*CancelLoopOutSwapResponse) ProtoMessage()
func (*CancelLoopOutSwapResponse) ProtoReflect ¶
func (x *CancelLoopOutSwapResponse) ProtoReflect() protoreflect.Message
func (*CancelLoopOutSwapResponse) Reset ¶
func (x *CancelLoopOutSwapResponse) Reset()
func (*CancelLoopOutSwapResponse) String ¶
func (x *CancelLoopOutSwapResponse) String() string
type HopHint ¶
type HopHint struct {
// The public key of the node at the start of the channel.
NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
// The unique identifier of the channel.
ChanId uint64 `protobuf:"varint,2,opt,name=chan_id,json=chanId,proto3" json:"chan_id,omitempty"`
// The base fee of the channel denominated in millisatoshis.
FeeBaseMsat uint32 `protobuf:"varint,3,opt,name=fee_base_msat,json=feeBaseMsat,proto3" json:"fee_base_msat,omitempty"`
//
//The fee rate of the channel for sending one satoshi across it denominated in
//millionths of a satoshi.
FeeProportionalMillionths uint32 `` /* 139-byte string literal not displayed */
// The time-lock delta of the channel.
CltvExpiryDelta uint32 `protobuf:"varint,5,opt,name=cltv_expiry_delta,json=cltvExpiryDelta,proto3" json:"cltv_expiry_delta,omitempty"`
// contains filtered or unexported fields
}
func (*HopHint) Descriptor
deprecated
func (*HopHint) GetCltvExpiryDelta ¶
func (*HopHint) GetFeeBaseMsat ¶
func (*HopHint) GetFeeProportionalMillionths ¶
func (*HopHint) ProtoMessage ¶
func (*HopHint) ProtoMessage()
func (*HopHint) ProtoReflect ¶
func (x *HopHint) ProtoReflect() protoreflect.Message
type HtlcAttempt ¶
type HtlcAttempt struct {
// The number of hops from the htlc's failure hop that it needed to take
// to reach the server's node.
RemainingHops uint32 `protobuf:"varint,1,opt,name=remaining_hops,json=remainingHops,proto3" json:"remaining_hops,omitempty"`
// contains filtered or unexported fields
}
func (*HtlcAttempt) Descriptor
deprecated
func (*HtlcAttempt) Descriptor() ([]byte, []int)
Deprecated: Use HtlcAttempt.ProtoReflect.Descriptor instead.
func (*HtlcAttempt) GetRemainingHops ¶
func (x *HtlcAttempt) GetRemainingHops() uint32
func (*HtlcAttempt) ProtoMessage ¶
func (*HtlcAttempt) ProtoMessage()
func (*HtlcAttempt) ProtoReflect ¶
func (x *HtlcAttempt) ProtoReflect() protoreflect.Message
func (*HtlcAttempt) Reset ¶
func (x *HtlcAttempt) Reset()
func (*HtlcAttempt) String ¶
func (x *HtlcAttempt) String() string
type MuSig2SignSweepReq ¶ added in v1.0.2
type MuSig2SignSweepReq struct {
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// The swap hash.
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
// The payment address for the swap invoice, used to ensure that only the
// swap owner can obtain the partial signature.
PaymentAddress []byte `protobuf:"bytes,3,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
// The local public nonce.
Nonce []byte `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
// The psbt of the sweep txn.
SweepTxPsbt []byte `protobuf:"bytes,6,opt,name=sweep_tx_psbt,json=sweepTxPsbt,proto3" json:"sweep_tx_psbt,omitempty"`
// contains filtered or unexported fields
}
func (*MuSig2SignSweepReq) Descriptor
deprecated
added in
v1.0.2
func (*MuSig2SignSweepReq) Descriptor() ([]byte, []int)
Deprecated: Use MuSig2SignSweepReq.ProtoReflect.Descriptor instead.
func (*MuSig2SignSweepReq) GetNonce ¶ added in v1.0.2
func (x *MuSig2SignSweepReq) GetNonce() []byte
func (*MuSig2SignSweepReq) GetPaymentAddress ¶ added in v1.0.2
func (x *MuSig2SignSweepReq) GetPaymentAddress() []byte
func (*MuSig2SignSweepReq) GetProtocolVersion ¶ added in v1.0.2
func (x *MuSig2SignSweepReq) GetProtocolVersion() ProtocolVersion
func (*MuSig2SignSweepReq) GetSwapHash ¶ added in v1.0.2
func (x *MuSig2SignSweepReq) GetSwapHash() []byte
func (*MuSig2SignSweepReq) GetSweepTxPsbt ¶ added in v1.0.3
func (x *MuSig2SignSweepReq) GetSweepTxPsbt() []byte
func (*MuSig2SignSweepReq) ProtoMessage ¶ added in v1.0.2
func (*MuSig2SignSweepReq) ProtoMessage()
func (*MuSig2SignSweepReq) ProtoReflect ¶ added in v1.0.2
func (x *MuSig2SignSweepReq) ProtoReflect() protoreflect.Message
func (*MuSig2SignSweepReq) Reset ¶ added in v1.0.2
func (x *MuSig2SignSweepReq) Reset()
func (*MuSig2SignSweepReq) String ¶ added in v1.0.2
func (x *MuSig2SignSweepReq) String() string
type MuSig2SignSweepRes ¶ added in v1.0.2
type MuSig2SignSweepRes struct {
// The server side public nonce.
Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// The partial signature of the server for the requested sighash.
PartialSignature []byte `protobuf:"bytes,2,opt,name=partial_signature,json=partialSignature,proto3" json:"partial_signature,omitempty"`
// contains filtered or unexported fields
}
func (*MuSig2SignSweepRes) Descriptor
deprecated
added in
v1.0.2
func (*MuSig2SignSweepRes) Descriptor() ([]byte, []int)
Deprecated: Use MuSig2SignSweepRes.ProtoReflect.Descriptor instead.
func (*MuSig2SignSweepRes) GetNonce ¶ added in v1.0.2
func (x *MuSig2SignSweepRes) GetNonce() []byte
func (*MuSig2SignSweepRes) GetPartialSignature ¶ added in v1.0.2
func (x *MuSig2SignSweepRes) GetPartialSignature() []byte
func (*MuSig2SignSweepRes) ProtoMessage ¶ added in v1.0.2
func (*MuSig2SignSweepRes) ProtoMessage()
func (*MuSig2SignSweepRes) ProtoReflect ¶ added in v1.0.2
func (x *MuSig2SignSweepRes) ProtoReflect() protoreflect.Message
func (*MuSig2SignSweepRes) Reset ¶ added in v1.0.2
func (x *MuSig2SignSweepRes) Reset()
func (*MuSig2SignSweepRes) String ¶ added in v1.0.2
func (x *MuSig2SignSweepRes) String() string
type PaymentFailureReason ¶
type PaymentFailureReason int32
PaymentFailureReason describes the reason that a payment failed. These values are copied directly from lnd.
const ( // //Payment isn't failed (yet). PaymentFailureReason_LND_FAILURE_REASON_NONE PaymentFailureReason = 0 // //There are more routes to try, but the payment timeout was exceeded. PaymentFailureReason_LND_FAILURE_REASON_TIMEOUT PaymentFailureReason = 1 // //All possible routes were tried and failed permanently. Or were no //routes to the destination at all. PaymentFailureReason_LND_FAILURE_REASON_NO_ROUTE PaymentFailureReason = 2 // //A non-recoverable error has occured. PaymentFailureReason_LND_FAILURE_REASON_ERROR PaymentFailureReason = 3 // //Payment details incorrect (unknown hash, invalid amt or //invalid final cltv delta) PaymentFailureReason_LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS PaymentFailureReason = 4 // //Insufficient local balance. PaymentFailureReason_LND_FAILURE_REASON_INSUFFICIENT_BALANCE PaymentFailureReason = 5 )
func (PaymentFailureReason) Descriptor ¶
func (PaymentFailureReason) Descriptor() protoreflect.EnumDescriptor
func (PaymentFailureReason) Enum ¶
func (x PaymentFailureReason) Enum() *PaymentFailureReason
func (PaymentFailureReason) EnumDescriptor
deprecated
func (PaymentFailureReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use PaymentFailureReason.Descriptor instead.
func (PaymentFailureReason) Number ¶
func (x PaymentFailureReason) Number() protoreflect.EnumNumber
func (PaymentFailureReason) String ¶
func (x PaymentFailureReason) String() string
func (PaymentFailureReason) Type ¶
func (PaymentFailureReason) Type() protoreflect.EnumType
type ProtocolVersion ¶
type ProtocolVersion int32
* This enum defines the protocol versions that clients may adhere to. Note that this is not a flagged enum. If a particular protocol version adds a feature, then in general all the preceding features are also supported. Exception to this is when features get deprecated.
const ( /// No protocol version reported at all. ProtocolVersion_LEGACY ProtocolVersion = 0 /// Client may attempt to send the loop out payment in multiple parts. ProtocolVersion_MULTI_LOOP_OUT ProtocolVersion = 1 //* //Loop will use native segwit (P2WSH) htlcs by default, while externally //published htlcs may use native (P2WSH) or nested (NP2WSH) segwit as well. ProtocolVersion_NATIVE_SEGWIT_LOOP_IN ProtocolVersion = 2 // //Once the on chain loop out htlc is confirmed, the client can push the swap //preimage to the server to speed up claim of their off chain htlc (acquiring //incoming liquidity more quickly than if the server waited for the on chain //claim tx). ProtocolVersion_PREIMAGE_PUSH_LOOP_OUT ProtocolVersion = 3 // The client will propose a cltv expiry height for loop out. ProtocolVersion_USER_EXPIRY_LOOP_OUT ProtocolVersion = 4 // The client will use the new v2 HTLC scripts. ProtocolVersion_HTLC_V2 ProtocolVersion = 5 // The client creates a probe invoice so that the server can perform a // multi-path probe. ProtocolVersion_MULTI_LOOP_IN ProtocolVersion = 6 // The client supports loop out swap cancelation. ProtocolVersion_LOOP_OUT_CANCEL ProtocolVersion = 7 // The client is able to ask the server to probe to test inbound // liquidity. ProtocolVersion_PROBE ProtocolVersion = 8 // The client may ask the server to use a custom routing helper plugin in // order to enhance off-chain payments corresponding to a swap. ProtocolVersion_ROUTING_PLUGIN ProtocolVersion = 9 // The client will use the new v3 (taproot) HTLC scripts. ProtocolVersion_HTLC_V3 ProtocolVersion = 10 // Enables MuSig2 signature scheme for swaps. ProtocolVersion_MUSIG2 ProtocolVersion = 11 )
func (ProtocolVersion) Descriptor ¶
func (ProtocolVersion) Descriptor() protoreflect.EnumDescriptor
func (ProtocolVersion) Enum ¶
func (x ProtocolVersion) Enum() *ProtocolVersion
func (ProtocolVersion) EnumDescriptor
deprecated
func (ProtocolVersion) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtocolVersion.Descriptor instead.
func (ProtocolVersion) Number ¶
func (x ProtocolVersion) Number() protoreflect.EnumNumber
func (ProtocolVersion) String ¶
func (x ProtocolVersion) String() string
func (ProtocolVersion) Type ¶
func (ProtocolVersion) Type() protoreflect.EnumType
type RecommendRoutingPluginReq ¶ added in v1.0.1
type RecommendRoutingPluginReq struct {
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// The hash of the swap requesting a routing plugin.
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
// The payment address for the swap invoice, used to ensure that only the
// swap owner can request routing plugin recommendation.
PaymentAddress []byte `protobuf:"bytes,3,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
// contains filtered or unexported fields
}
func (*RecommendRoutingPluginReq) Descriptor
deprecated
added in
v1.0.1
func (*RecommendRoutingPluginReq) Descriptor() ([]byte, []int)
Deprecated: Use RecommendRoutingPluginReq.ProtoReflect.Descriptor instead.
func (*RecommendRoutingPluginReq) GetPaymentAddress ¶ added in v1.0.1
func (x *RecommendRoutingPluginReq) GetPaymentAddress() []byte
func (*RecommendRoutingPluginReq) GetProtocolVersion ¶ added in v1.0.1
func (x *RecommendRoutingPluginReq) GetProtocolVersion() ProtocolVersion
func (*RecommendRoutingPluginReq) GetSwapHash ¶ added in v1.0.1
func (x *RecommendRoutingPluginReq) GetSwapHash() []byte
func (*RecommendRoutingPluginReq) ProtoMessage ¶ added in v1.0.1
func (*RecommendRoutingPluginReq) ProtoMessage()
func (*RecommendRoutingPluginReq) ProtoReflect ¶ added in v1.0.1
func (x *RecommendRoutingPluginReq) ProtoReflect() protoreflect.Message
func (*RecommendRoutingPluginReq) Reset ¶ added in v1.0.1
func (x *RecommendRoutingPluginReq) Reset()
func (*RecommendRoutingPluginReq) String ¶ added in v1.0.1
func (x *RecommendRoutingPluginReq) String() string
type RecommendRoutingPluginRes ¶ added in v1.0.1
type RecommendRoutingPluginRes struct {
// The routing plugin to use for off-chain payments.
Plugin RoutingPlugin `protobuf:"varint,1,opt,name=plugin,proto3,enum=looprpc.RoutingPlugin" json:"plugin,omitempty"`
// contains filtered or unexported fields
}
func (*RecommendRoutingPluginRes) Descriptor
deprecated
added in
v1.0.1
func (*RecommendRoutingPluginRes) Descriptor() ([]byte, []int)
Deprecated: Use RecommendRoutingPluginRes.ProtoReflect.Descriptor instead.
func (*RecommendRoutingPluginRes) GetPlugin ¶ added in v1.0.1
func (x *RecommendRoutingPluginRes) GetPlugin() RoutingPlugin
func (*RecommendRoutingPluginRes) ProtoMessage ¶ added in v1.0.1
func (*RecommendRoutingPluginRes) ProtoMessage()
func (*RecommendRoutingPluginRes) ProtoReflect ¶ added in v1.0.1
func (x *RecommendRoutingPluginRes) ProtoReflect() protoreflect.Message
func (*RecommendRoutingPluginRes) Reset ¶ added in v1.0.1
func (x *RecommendRoutingPluginRes) Reset()
func (*RecommendRoutingPluginRes) String ¶ added in v1.0.1
func (x *RecommendRoutingPluginRes) String() string
type ReportRoutingResultReq ¶ added in v1.0.1
type ReportRoutingResultReq struct {
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// The swap hash.
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
// The payment address for the swap invoice, used to ensure that only the
// swap owner can report routing result.
PaymentAddress []byte `protobuf:"bytes,3,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
// The routing plugin that was used.
Plugin RoutingPlugin `protobuf:"varint,4,opt,name=plugin,proto3,enum=looprpc.RoutingPlugin" json:"plugin,omitempty"`
// Whether this payment succeeded.
Success bool `protobuf:"varint,5,opt,name=success,proto3" json:"success,omitempty"`
// The number of payment attempts using the plugin.
Attempts int32 `protobuf:"varint,6,opt,name=attempts,proto3" json:"attempts,omitempty"`
// Total time used in milliseconds.
TotalTime int64 `protobuf:"varint,7,opt,name=total_time,json=totalTime,proto3" json:"total_time,omitempty"`
// contains filtered or unexported fields
}
func (*ReportRoutingResultReq) Descriptor
deprecated
added in
v1.0.1
func (*ReportRoutingResultReq) Descriptor() ([]byte, []int)
Deprecated: Use ReportRoutingResultReq.ProtoReflect.Descriptor instead.
func (*ReportRoutingResultReq) GetAttempts ¶ added in v1.0.1
func (x *ReportRoutingResultReq) GetAttempts() int32
func (*ReportRoutingResultReq) GetPaymentAddress ¶ added in v1.0.1
func (x *ReportRoutingResultReq) GetPaymentAddress() []byte
func (*ReportRoutingResultReq) GetPlugin ¶ added in v1.0.1
func (x *ReportRoutingResultReq) GetPlugin() RoutingPlugin
func (*ReportRoutingResultReq) GetProtocolVersion ¶ added in v1.0.1
func (x *ReportRoutingResultReq) GetProtocolVersion() ProtocolVersion
func (*ReportRoutingResultReq) GetSuccess ¶ added in v1.0.1
func (x *ReportRoutingResultReq) GetSuccess() bool
func (*ReportRoutingResultReq) GetSwapHash ¶ added in v1.0.1
func (x *ReportRoutingResultReq) GetSwapHash() []byte
func (*ReportRoutingResultReq) GetTotalTime ¶ added in v1.0.1
func (x *ReportRoutingResultReq) GetTotalTime() int64
func (*ReportRoutingResultReq) ProtoMessage ¶ added in v1.0.1
func (*ReportRoutingResultReq) ProtoMessage()
func (*ReportRoutingResultReq) ProtoReflect ¶ added in v1.0.1
func (x *ReportRoutingResultReq) ProtoReflect() protoreflect.Message
func (*ReportRoutingResultReq) Reset ¶ added in v1.0.1
func (x *ReportRoutingResultReq) Reset()
func (*ReportRoutingResultReq) String ¶ added in v1.0.1
func (x *ReportRoutingResultReq) String() string
type ReportRoutingResultRes ¶ added in v1.0.1
type ReportRoutingResultRes struct {
// contains filtered or unexported fields
}
func (*ReportRoutingResultRes) Descriptor
deprecated
added in
v1.0.1
func (*ReportRoutingResultRes) Descriptor() ([]byte, []int)
Deprecated: Use ReportRoutingResultRes.ProtoReflect.Descriptor instead.
func (*ReportRoutingResultRes) ProtoMessage ¶ added in v1.0.1
func (*ReportRoutingResultRes) ProtoMessage()
func (*ReportRoutingResultRes) ProtoReflect ¶ added in v1.0.1
func (x *ReportRoutingResultRes) ProtoReflect() protoreflect.Message
func (*ReportRoutingResultRes) Reset ¶ added in v1.0.1
func (x *ReportRoutingResultRes) Reset()
func (*ReportRoutingResultRes) String ¶ added in v1.0.1
func (x *ReportRoutingResultRes) String() string
type RouteCancel ¶
type RouteCancel struct {
// The type of the payment that failed.
RouteType RoutePaymentType `protobuf:"varint,1,opt,name=route_type,json=routeType,proto3,enum=looprpc.RoutePaymentType" json:"route_type,omitempty"`
// The htlcs that the client tried to pay the server with, if any.
Attempts []*HtlcAttempt `protobuf:"bytes,2,rep,name=attempts,proto3" json:"attempts,omitempty"`
// The reason that the payment failed.
Failure PaymentFailureReason `protobuf:"varint,3,opt,name=failure,proto3,enum=looprpc.PaymentFailureReason" json:"failure,omitempty"`
// contains filtered or unexported fields
}
func (*RouteCancel) Descriptor
deprecated
func (*RouteCancel) Descriptor() ([]byte, []int)
Deprecated: Use RouteCancel.ProtoReflect.Descriptor instead.
func (*RouteCancel) GetAttempts ¶
func (x *RouteCancel) GetAttempts() []*HtlcAttempt
func (*RouteCancel) GetFailure ¶
func (x *RouteCancel) GetFailure() PaymentFailureReason
func (*RouteCancel) GetRouteType ¶
func (x *RouteCancel) GetRouteType() RoutePaymentType
func (*RouteCancel) ProtoMessage ¶
func (*RouteCancel) ProtoMessage()
func (*RouteCancel) ProtoReflect ¶
func (x *RouteCancel) ProtoReflect() protoreflect.Message
func (*RouteCancel) Reset ¶
func (x *RouteCancel) Reset()
func (*RouteCancel) String ¶
func (x *RouteCancel) String() string
type RouteHint ¶
type RouteHint struct {
//
//A list of hop hints that when chained together can assist in reaching a
//specific destination.
HopHints []*HopHint `protobuf:"bytes,1,rep,name=hop_hints,json=hopHints,proto3" json:"hop_hints,omitempty"`
// contains filtered or unexported fields
}
func (*RouteHint) Descriptor
deprecated
func (*RouteHint) GetHopHints ¶
func (*RouteHint) ProtoMessage ¶
func (*RouteHint) ProtoMessage()
func (*RouteHint) ProtoReflect ¶
func (x *RouteHint) ProtoReflect() protoreflect.Message
type RoutePaymentType ¶
type RoutePaymentType int32
const ( // No reason, used to distinguish from the default value. RoutePaymentType_ROUTE_UNKNOWN RoutePaymentType = 0 // Prepay route indicates that the swap was canceled because the client // could not find a route to the server for the prepay. RoutePaymentType_PREPAY_ROUTE RoutePaymentType = 1 // Invoice route indicates that the swap was canceled because the client // could not find a route to the server for the swap invoice. RoutePaymentType_INVOICE_ROUTE RoutePaymentType = 2 )
func (RoutePaymentType) Descriptor ¶
func (RoutePaymentType) Descriptor() protoreflect.EnumDescriptor
func (RoutePaymentType) Enum ¶
func (x RoutePaymentType) Enum() *RoutePaymentType
func (RoutePaymentType) EnumDescriptor
deprecated
func (RoutePaymentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RoutePaymentType.Descriptor instead.
func (RoutePaymentType) Number ¶
func (x RoutePaymentType) Number() protoreflect.EnumNumber
func (RoutePaymentType) String ¶
func (x RoutePaymentType) String() string
func (RoutePaymentType) Type ¶
func (RoutePaymentType) Type() protoreflect.EnumType
type RoutingPlugin ¶ added in v1.0.1
type RoutingPlugin int32
const ( // Client won't use any plugins to help with payment routing. RoutingPlugin_NONE RoutingPlugin = 0 // Client will try more expensive routes for off-chain payments. RoutingPlugin_LOW_HIGH RoutingPlugin = 1 )
func (RoutingPlugin) Descriptor ¶ added in v1.0.1
func (RoutingPlugin) Descriptor() protoreflect.EnumDescriptor
func (RoutingPlugin) Enum ¶ added in v1.0.1
func (x RoutingPlugin) Enum() *RoutingPlugin
func (RoutingPlugin) EnumDescriptor
deprecated
added in
v1.0.1
func (RoutingPlugin) EnumDescriptor() ([]byte, []int)
Deprecated: Use RoutingPlugin.Descriptor instead.
func (RoutingPlugin) Number ¶ added in v1.0.1
func (x RoutingPlugin) Number() protoreflect.EnumNumber
func (RoutingPlugin) String ¶ added in v1.0.1
func (x RoutingPlugin) String() string
func (RoutingPlugin) Type ¶ added in v1.0.1
func (RoutingPlugin) Type() protoreflect.EnumType
type ServerLoopInQuoteRequest ¶
type ServerLoopInQuoteRequest struct {
/// The swap amount. If zero, a quote for a maximum amt swap will be given.
Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
// The destination pubkey. Will be used to retrieve cached probed routing
// fee.
Pubkey []byte `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
// The last hop to use. Will be used to retrieve cached probed routing fee.
LastHop []byte `protobuf:"bytes,4,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"`
// Optional route hints to reach the destination through private channels.
RouteHints []*RouteHint `protobuf:"bytes,5,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
/// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ServerLoopInQuoteRequest) Descriptor
deprecated
func (*ServerLoopInQuoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopInQuoteRequest.ProtoReflect.Descriptor instead.
func (*ServerLoopInQuoteRequest) GetAmt ¶
func (x *ServerLoopInQuoteRequest) GetAmt() uint64
func (*ServerLoopInQuoteRequest) GetLastHop ¶
func (x *ServerLoopInQuoteRequest) GetLastHop() []byte
func (*ServerLoopInQuoteRequest) GetProtocolVersion ¶
func (x *ServerLoopInQuoteRequest) GetProtocolVersion() ProtocolVersion
func (*ServerLoopInQuoteRequest) GetPubkey ¶
func (x *ServerLoopInQuoteRequest) GetPubkey() []byte
func (*ServerLoopInQuoteRequest) GetRouteHints ¶
func (x *ServerLoopInQuoteRequest) GetRouteHints() []*RouteHint
func (*ServerLoopInQuoteRequest) ProtoMessage ¶
func (*ServerLoopInQuoteRequest) ProtoMessage()
func (*ServerLoopInQuoteRequest) ProtoReflect ¶
func (x *ServerLoopInQuoteRequest) ProtoReflect() protoreflect.Message
func (*ServerLoopInQuoteRequest) Reset ¶
func (x *ServerLoopInQuoteRequest) Reset()
func (*ServerLoopInQuoteRequest) String ¶
func (x *ServerLoopInQuoteRequest) String() string
type ServerLoopInQuoteResponse ¶
type ServerLoopInQuoteResponse struct {
SwapFee int64 `protobuf:"varint,1,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"`
// Deprecated: Do not use.
SwapFeeRate int64 `protobuf:"varint,2,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"`
// Deprecated: Do not use.
MinSwapAmount uint64 `protobuf:"varint,4,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
// Deprecated: Do not use.
MaxSwapAmount uint64 `protobuf:"varint,5,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
CltvDelta int32 `protobuf:"varint,6,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"`
// contains filtered or unexported fields
}
func (*ServerLoopInQuoteResponse) Descriptor
deprecated
func (*ServerLoopInQuoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopInQuoteResponse.ProtoReflect.Descriptor instead.
func (*ServerLoopInQuoteResponse) GetCltvDelta ¶
func (x *ServerLoopInQuoteResponse) GetCltvDelta() int32
func (*ServerLoopInQuoteResponse) GetMaxSwapAmount
deprecated
func (x *ServerLoopInQuoteResponse) GetMaxSwapAmount() uint64
Deprecated: Do not use.
func (*ServerLoopInQuoteResponse) GetMinSwapAmount
deprecated
func (x *ServerLoopInQuoteResponse) GetMinSwapAmount() uint64
Deprecated: Do not use.
func (*ServerLoopInQuoteResponse) GetSwapFee ¶
func (x *ServerLoopInQuoteResponse) GetSwapFee() int64
func (*ServerLoopInQuoteResponse) GetSwapFeeRate
deprecated
func (x *ServerLoopInQuoteResponse) GetSwapFeeRate() int64
Deprecated: Do not use.
func (*ServerLoopInQuoteResponse) ProtoMessage ¶
func (*ServerLoopInQuoteResponse) ProtoMessage()
func (*ServerLoopInQuoteResponse) ProtoReflect ¶
func (x *ServerLoopInQuoteResponse) ProtoReflect() protoreflect.Message
func (*ServerLoopInQuoteResponse) Reset ¶
func (x *ServerLoopInQuoteResponse) Reset()
func (*ServerLoopInQuoteResponse) String ¶
func (x *ServerLoopInQuoteResponse) String() string
type ServerLoopInRequest ¶
type ServerLoopInRequest struct {
SenderKey []byte `protobuf:"bytes,1,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"`
SenderInternalPubkey []byte `protobuf:"bytes,9,opt,name=sender_internal_pubkey,json=senderInternalPubkey,proto3" json:"sender_internal_pubkey,omitempty"`
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
Amt uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"`
SwapInvoice string `protobuf:"bytes,4,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"`
LastHop []byte `protobuf:"bytes,5,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"`
/// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// An invoice that can be used for the purpose of probing.
ProbeInvoice string `protobuf:"bytes,7,opt,name=probe_invoice,json=probeInvoice,proto3" json:"probe_invoice,omitempty"`
// The user agent string that identifies the software running on the user's
// side. This can be changed in the user's client software but it _SHOULD_
// conform to the following pattern:
// Agent-Name/semver-version(/additional-info)
// Examples:
// loopd/v0.10.0-beta/commit=3b635821
// litd/v0.2.0-alpha/commit=326d754
UserAgent string `protobuf:"bytes,8,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
// contains filtered or unexported fields
}
func (*ServerLoopInRequest) Descriptor
deprecated
func (*ServerLoopInRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopInRequest.ProtoReflect.Descriptor instead.
func (*ServerLoopInRequest) GetAmt ¶
func (x *ServerLoopInRequest) GetAmt() uint64
func (*ServerLoopInRequest) GetLastHop ¶
func (x *ServerLoopInRequest) GetLastHop() []byte
func (*ServerLoopInRequest) GetProbeInvoice ¶
func (x *ServerLoopInRequest) GetProbeInvoice() string
func (*ServerLoopInRequest) GetProtocolVersion ¶
func (x *ServerLoopInRequest) GetProtocolVersion() ProtocolVersion
func (*ServerLoopInRequest) GetSenderInternalPubkey ¶ added in v1.0.4
func (x *ServerLoopInRequest) GetSenderInternalPubkey() []byte
func (*ServerLoopInRequest) GetSenderKey ¶
func (x *ServerLoopInRequest) GetSenderKey() []byte
func (*ServerLoopInRequest) GetSwapHash ¶
func (x *ServerLoopInRequest) GetSwapHash() []byte
func (*ServerLoopInRequest) GetSwapInvoice ¶
func (x *ServerLoopInRequest) GetSwapInvoice() string
func (*ServerLoopInRequest) GetUserAgent ¶
func (x *ServerLoopInRequest) GetUserAgent() string
func (*ServerLoopInRequest) ProtoMessage ¶
func (*ServerLoopInRequest) ProtoMessage()
func (*ServerLoopInRequest) ProtoReflect ¶
func (x *ServerLoopInRequest) ProtoReflect() protoreflect.Message
func (*ServerLoopInRequest) Reset ¶
func (x *ServerLoopInRequest) Reset()
func (*ServerLoopInRequest) String ¶
func (x *ServerLoopInRequest) String() string
type ServerLoopInResponse ¶
type ServerLoopInResponse struct {
ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"`
ReceiverInternalPubkey []byte `` /* 129-byte string literal not displayed */
Expiry int32 `protobuf:"varint,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
// A human-readable message from the loop server.
ServerMessage string `protobuf:"bytes,3,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"`
// contains filtered or unexported fields
}
func (*ServerLoopInResponse) Descriptor
deprecated
func (*ServerLoopInResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopInResponse.ProtoReflect.Descriptor instead.
func (*ServerLoopInResponse) GetExpiry ¶
func (x *ServerLoopInResponse) GetExpiry() int32
func (*ServerLoopInResponse) GetReceiverInternalPubkey ¶ added in v1.0.4
func (x *ServerLoopInResponse) GetReceiverInternalPubkey() []byte
func (*ServerLoopInResponse) GetReceiverKey ¶
func (x *ServerLoopInResponse) GetReceiverKey() []byte
func (*ServerLoopInResponse) GetServerMessage ¶
func (x *ServerLoopInResponse) GetServerMessage() string
func (*ServerLoopInResponse) ProtoMessage ¶
func (*ServerLoopInResponse) ProtoMessage()
func (*ServerLoopInResponse) ProtoReflect ¶
func (x *ServerLoopInResponse) ProtoReflect() protoreflect.Message
func (*ServerLoopInResponse) Reset ¶
func (x *ServerLoopInResponse) Reset()
func (*ServerLoopInResponse) String ¶
func (x *ServerLoopInResponse) String() string
type ServerLoopInTerms ¶
type ServerLoopInTerms struct {
MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
// contains filtered or unexported fields
}
func (*ServerLoopInTerms) Descriptor
deprecated
func (*ServerLoopInTerms) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopInTerms.ProtoReflect.Descriptor instead.
func (*ServerLoopInTerms) GetMaxSwapAmount ¶
func (x *ServerLoopInTerms) GetMaxSwapAmount() uint64
func (*ServerLoopInTerms) GetMinSwapAmount ¶
func (x *ServerLoopInTerms) GetMinSwapAmount() uint64
func (*ServerLoopInTerms) ProtoMessage ¶
func (*ServerLoopInTerms) ProtoMessage()
func (*ServerLoopInTerms) ProtoReflect ¶
func (x *ServerLoopInTerms) ProtoReflect() protoreflect.Message
func (*ServerLoopInTerms) Reset ¶
func (x *ServerLoopInTerms) Reset()
func (*ServerLoopInTerms) String ¶
func (x *ServerLoopInTerms) String() string
type ServerLoopInTermsRequest ¶
type ServerLoopInTermsRequest struct {
/// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ServerLoopInTermsRequest) Descriptor
deprecated
func (*ServerLoopInTermsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopInTermsRequest.ProtoReflect.Descriptor instead.
func (*ServerLoopInTermsRequest) GetProtocolVersion ¶
func (x *ServerLoopInTermsRequest) GetProtocolVersion() ProtocolVersion
func (*ServerLoopInTermsRequest) ProtoMessage ¶
func (*ServerLoopInTermsRequest) ProtoMessage()
func (*ServerLoopInTermsRequest) ProtoReflect ¶
func (x *ServerLoopInTermsRequest) ProtoReflect() protoreflect.Message
func (*ServerLoopInTermsRequest) Reset ¶
func (x *ServerLoopInTermsRequest) Reset()
func (*ServerLoopInTermsRequest) String ¶
func (x *ServerLoopInTermsRequest) String() string
type ServerLoopOutPushPreimageRequest ¶
type ServerLoopOutPushPreimageRequest struct {
// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
//
//Preimage is the preimage of the loop out swap that we wish to push to the
//server to speed up off-chain claim once the on-chain htlc has confirmed.
Preimage []byte `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"`
// contains filtered or unexported fields
}
ServerLoopOutPushPreimageRequest pushes a preimage to the server. Note that this call returns with no error after the server acknowledges the preimage and does not block until the invoice is settled.
func (*ServerLoopOutPushPreimageRequest) Descriptor
deprecated
func (*ServerLoopOutPushPreimageRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopOutPushPreimageRequest.ProtoReflect.Descriptor instead.
func (*ServerLoopOutPushPreimageRequest) GetPreimage ¶
func (x *ServerLoopOutPushPreimageRequest) GetPreimage() []byte
func (*ServerLoopOutPushPreimageRequest) GetProtocolVersion ¶
func (x *ServerLoopOutPushPreimageRequest) GetProtocolVersion() ProtocolVersion
func (*ServerLoopOutPushPreimageRequest) ProtoMessage ¶
func (*ServerLoopOutPushPreimageRequest) ProtoMessage()
func (*ServerLoopOutPushPreimageRequest) ProtoReflect ¶
func (x *ServerLoopOutPushPreimageRequest) ProtoReflect() protoreflect.Message
func (*ServerLoopOutPushPreimageRequest) Reset ¶
func (x *ServerLoopOutPushPreimageRequest) Reset()
func (*ServerLoopOutPushPreimageRequest) String ¶
func (x *ServerLoopOutPushPreimageRequest) String() string
type ServerLoopOutPushPreimageResponse ¶
type ServerLoopOutPushPreimageResponse struct {
// contains filtered or unexported fields
}
func (*ServerLoopOutPushPreimageResponse) Descriptor
deprecated
func (*ServerLoopOutPushPreimageResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopOutPushPreimageResponse.ProtoReflect.Descriptor instead.
func (*ServerLoopOutPushPreimageResponse) ProtoMessage ¶
func (*ServerLoopOutPushPreimageResponse) ProtoMessage()
func (*ServerLoopOutPushPreimageResponse) ProtoReflect ¶
func (x *ServerLoopOutPushPreimageResponse) ProtoReflect() protoreflect.Message
func (*ServerLoopOutPushPreimageResponse) Reset ¶
func (x *ServerLoopOutPushPreimageResponse) Reset()
func (*ServerLoopOutPushPreimageResponse) String ¶
func (x *ServerLoopOutPushPreimageResponse) String() string
type ServerLoopOutQuote ¶
type ServerLoopOutQuote struct {
SwapPaymentDest string `protobuf:"bytes,1,opt,name=swap_payment_dest,json=swapPaymentDest,proto3" json:"swap_payment_dest,omitempty"`
/// The total estimated swap fee given the quote amt.
SwapFee int64 `protobuf:"varint,2,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"`
/// Deprecated, total swap fee given quote amt is calculated in swap_fee.
//
// Deprecated: Do not use.
SwapFeeRate int64 `protobuf:"varint,3,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"`
PrepayAmt uint64 `protobuf:"varint,4,opt,name=prepay_amt,json=prepayAmt,proto3" json:"prepay_amt,omitempty"`
// Deprecated: Do not use.
MinSwapAmount uint64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
// Deprecated: Do not use.
MaxSwapAmount uint64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
// The server-proposed cltv delta of the on-chain htlc. Deprecated because
// the field is already specified in the request.
//
// Deprecated: Do not use.
CltvDelta int32 `protobuf:"varint,7,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"`
// contains filtered or unexported fields
}
func (*ServerLoopOutQuote) Descriptor
deprecated
func (*ServerLoopOutQuote) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopOutQuote.ProtoReflect.Descriptor instead.
func (*ServerLoopOutQuote) GetCltvDelta
deprecated
func (x *ServerLoopOutQuote) GetCltvDelta() int32
Deprecated: Do not use.
func (*ServerLoopOutQuote) GetMaxSwapAmount
deprecated
func (x *ServerLoopOutQuote) GetMaxSwapAmount() uint64
Deprecated: Do not use.
func (*ServerLoopOutQuote) GetMinSwapAmount
deprecated
func (x *ServerLoopOutQuote) GetMinSwapAmount() uint64
Deprecated: Do not use.
func (*ServerLoopOutQuote) GetPrepayAmt ¶
func (x *ServerLoopOutQuote) GetPrepayAmt() uint64
func (*ServerLoopOutQuote) GetSwapFee ¶
func (x *ServerLoopOutQuote) GetSwapFee() int64
func (*ServerLoopOutQuote) GetSwapFeeRate
deprecated
func (x *ServerLoopOutQuote) GetSwapFeeRate() int64
Deprecated: Do not use.
func (*ServerLoopOutQuote) GetSwapPaymentDest ¶
func (x *ServerLoopOutQuote) GetSwapPaymentDest() string
func (*ServerLoopOutQuote) ProtoMessage ¶
func (*ServerLoopOutQuote) ProtoMessage()
func (*ServerLoopOutQuote) ProtoReflect ¶
func (x *ServerLoopOutQuote) ProtoReflect() protoreflect.Message
func (*ServerLoopOutQuote) Reset ¶
func (x *ServerLoopOutQuote) Reset()
func (*ServerLoopOutQuote) String ¶
func (x *ServerLoopOutQuote) String() string
type ServerLoopOutQuoteRequest ¶
type ServerLoopOutQuoteRequest struct {
/// The swap amount. If zero, a quote for a maximum amt swap will be given.
Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
/// The unix time in seconds we want the on-chain swap to be published by.
SwapPublicationDeadline int64 `` /* 133-byte string literal not displayed */
/// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// The requested absolute block height of the on-chain htlc. This is
// subjected to min and max constraints as reported in the LoopOutTerms
// response.
Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
// contains filtered or unexported fields
}
func (*ServerLoopOutQuoteRequest) Descriptor
deprecated
func (*ServerLoopOutQuoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopOutQuoteRequest.ProtoReflect.Descriptor instead.
func (*ServerLoopOutQuoteRequest) GetAmt ¶
func (x *ServerLoopOutQuoteRequest) GetAmt() uint64
func (*ServerLoopOutQuoteRequest) GetExpiry ¶
func (x *ServerLoopOutQuoteRequest) GetExpiry() int32
func (*ServerLoopOutQuoteRequest) GetProtocolVersion ¶
func (x *ServerLoopOutQuoteRequest) GetProtocolVersion() ProtocolVersion
func (*ServerLoopOutQuoteRequest) GetSwapPublicationDeadline ¶
func (x *ServerLoopOutQuoteRequest) GetSwapPublicationDeadline() int64
func (*ServerLoopOutQuoteRequest) ProtoMessage ¶
func (*ServerLoopOutQuoteRequest) ProtoMessage()
func (*ServerLoopOutQuoteRequest) ProtoReflect ¶
func (x *ServerLoopOutQuoteRequest) ProtoReflect() protoreflect.Message
func (*ServerLoopOutQuoteRequest) Reset ¶
func (x *ServerLoopOutQuoteRequest) Reset()
func (*ServerLoopOutQuoteRequest) String ¶
func (x *ServerLoopOutQuoteRequest) String() string
type ServerLoopOutRequest ¶
type ServerLoopOutRequest struct {
ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"`
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
Amt uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"`
/// The unix time in seconds we want the on-chain swap to be published by.
SwapPublicationDeadline int64 `` /* 133-byte string literal not displayed */
/// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// The requested absolute block height of the on-chain htlc. This is
// subjected to min and max constraints as reported in the LoopOutTerms
// response.
Expiry int32 `protobuf:"varint,6,opt,name=expiry,proto3" json:"expiry,omitempty"`
// The user agent string that identifies the software running on the user's
// side. This can be changed in the user's client software but it _SHOULD_
// conform to the following pattern:
// Agent-Name/semver-version(/additional-info)
// Examples:
// loopd/v0.10.0-beta/commit=3b635821
// litd/v0.2.0-alpha/commit=326d754
UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
// contains filtered or unexported fields
}
func (*ServerLoopOutRequest) Descriptor
deprecated
func (*ServerLoopOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopOutRequest.ProtoReflect.Descriptor instead.
func (*ServerLoopOutRequest) GetAmt ¶
func (x *ServerLoopOutRequest) GetAmt() uint64
func (*ServerLoopOutRequest) GetExpiry ¶
func (x *ServerLoopOutRequest) GetExpiry() int32
func (*ServerLoopOutRequest) GetProtocolVersion ¶
func (x *ServerLoopOutRequest) GetProtocolVersion() ProtocolVersion
func (*ServerLoopOutRequest) GetReceiverKey ¶
func (x *ServerLoopOutRequest) GetReceiverKey() []byte
func (*ServerLoopOutRequest) GetSwapHash ¶
func (x *ServerLoopOutRequest) GetSwapHash() []byte
func (*ServerLoopOutRequest) GetSwapPublicationDeadline ¶
func (x *ServerLoopOutRequest) GetSwapPublicationDeadline() int64
func (*ServerLoopOutRequest) GetUserAgent ¶
func (x *ServerLoopOutRequest) GetUserAgent() string
func (*ServerLoopOutRequest) ProtoMessage ¶
func (*ServerLoopOutRequest) ProtoMessage()
func (*ServerLoopOutRequest) ProtoReflect ¶
func (x *ServerLoopOutRequest) ProtoReflect() protoreflect.Message
func (*ServerLoopOutRequest) Reset ¶
func (x *ServerLoopOutRequest) Reset()
func (*ServerLoopOutRequest) String ¶
func (x *ServerLoopOutRequest) String() string
type ServerLoopOutResponse ¶
type ServerLoopOutResponse struct {
SwapInvoice string `protobuf:"bytes,1,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"`
PrepayInvoice string `protobuf:"bytes,2,opt,name=prepay_invoice,json=prepayInvoice,proto3" json:"prepay_invoice,omitempty"`
SenderKey []byte `protobuf:"bytes,3,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"`
// The height at which the on-chain htlc will expire. Deprecated because the
// field is already specified in the request.
//
// Deprecated: Do not use.
Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
// A human-readable message from the loop server.
ServerMessage string `protobuf:"bytes,5,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"`
// contains filtered or unexported fields
}
func (*ServerLoopOutResponse) Descriptor
deprecated
func (*ServerLoopOutResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopOutResponse.ProtoReflect.Descriptor instead.
func (*ServerLoopOutResponse) GetExpiry
deprecated
func (x *ServerLoopOutResponse) GetExpiry() int32
Deprecated: Do not use.
func (*ServerLoopOutResponse) GetPrepayInvoice ¶
func (x *ServerLoopOutResponse) GetPrepayInvoice() string
func (*ServerLoopOutResponse) GetSenderKey ¶
func (x *ServerLoopOutResponse) GetSenderKey() []byte
func (*ServerLoopOutResponse) GetServerMessage ¶
func (x *ServerLoopOutResponse) GetServerMessage() string
func (*ServerLoopOutResponse) GetSwapInvoice ¶
func (x *ServerLoopOutResponse) GetSwapInvoice() string
func (*ServerLoopOutResponse) ProtoMessage ¶
func (*ServerLoopOutResponse) ProtoMessage()
func (*ServerLoopOutResponse) ProtoReflect ¶
func (x *ServerLoopOutResponse) ProtoReflect() protoreflect.Message
func (*ServerLoopOutResponse) Reset ¶
func (x *ServerLoopOutResponse) Reset()
func (*ServerLoopOutResponse) String ¶
func (x *ServerLoopOutResponse) String() string
type ServerLoopOutTerms ¶
type ServerLoopOutTerms struct {
MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
// The minimally accepted cltv delta of the on-chain htlc.
MinCltvDelta int32 `protobuf:"varint,3,opt,name=min_cltv_delta,json=minCltvDelta,proto3" json:"min_cltv_delta,omitempty"`
// The maximally accepted cltv delta of the on-chain htlc.
MaxCltvDelta int32 `protobuf:"varint,4,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"`
// contains filtered or unexported fields
}
func (*ServerLoopOutTerms) Descriptor
deprecated
func (*ServerLoopOutTerms) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopOutTerms.ProtoReflect.Descriptor instead.
func (*ServerLoopOutTerms) GetMaxCltvDelta ¶
func (x *ServerLoopOutTerms) GetMaxCltvDelta() int32
func (*ServerLoopOutTerms) GetMaxSwapAmount ¶
func (x *ServerLoopOutTerms) GetMaxSwapAmount() uint64
func (*ServerLoopOutTerms) GetMinCltvDelta ¶
func (x *ServerLoopOutTerms) GetMinCltvDelta() int32
func (*ServerLoopOutTerms) GetMinSwapAmount ¶
func (x *ServerLoopOutTerms) GetMinSwapAmount() uint64
func (*ServerLoopOutTerms) ProtoMessage ¶
func (*ServerLoopOutTerms) ProtoMessage()
func (*ServerLoopOutTerms) ProtoReflect ¶
func (x *ServerLoopOutTerms) ProtoReflect() protoreflect.Message
func (*ServerLoopOutTerms) Reset ¶
func (x *ServerLoopOutTerms) Reset()
func (*ServerLoopOutTerms) String ¶
func (x *ServerLoopOutTerms) String() string
type ServerLoopOutTermsRequest ¶
type ServerLoopOutTermsRequest struct {
/// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ServerLoopOutTermsRequest) Descriptor
deprecated
func (*ServerLoopOutTermsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoopOutTermsRequest.ProtoReflect.Descriptor instead.
func (*ServerLoopOutTermsRequest) GetProtocolVersion ¶
func (x *ServerLoopOutTermsRequest) GetProtocolVersion() ProtocolVersion
func (*ServerLoopOutTermsRequest) ProtoMessage ¶
func (*ServerLoopOutTermsRequest) ProtoMessage()
func (*ServerLoopOutTermsRequest) ProtoReflect ¶
func (x *ServerLoopOutTermsRequest) ProtoReflect() protoreflect.Message
func (*ServerLoopOutTermsRequest) Reset ¶
func (x *ServerLoopOutTermsRequest) Reset()
func (*ServerLoopOutTermsRequest) String ¶
func (x *ServerLoopOutTermsRequest) String() string
type ServerProbeRequest ¶
type ServerProbeRequest struct {
// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// The probe amount.
Amt uint64 `protobuf:"varint,2,opt,name=amt,proto3" json:"amt,omitempty"`
// The target node for the probe.
Target []byte `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Optional last hop to use when probing the client.
LastHop []byte `protobuf:"bytes,4,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"`
// Optional route hints to reach the destination through private channels.
RouteHints []*RouteHint `protobuf:"bytes,5,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
// contains filtered or unexported fields
}
func (*ServerProbeRequest) Descriptor
deprecated
func (*ServerProbeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerProbeRequest.ProtoReflect.Descriptor instead.
func (*ServerProbeRequest) GetAmt ¶
func (x *ServerProbeRequest) GetAmt() uint64
func (*ServerProbeRequest) GetLastHop ¶
func (x *ServerProbeRequest) GetLastHop() []byte
func (*ServerProbeRequest) GetProtocolVersion ¶
func (x *ServerProbeRequest) GetProtocolVersion() ProtocolVersion
func (*ServerProbeRequest) GetRouteHints ¶
func (x *ServerProbeRequest) GetRouteHints() []*RouteHint
func (*ServerProbeRequest) GetTarget ¶
func (x *ServerProbeRequest) GetTarget() []byte
func (*ServerProbeRequest) ProtoMessage ¶
func (*ServerProbeRequest) ProtoMessage()
func (*ServerProbeRequest) ProtoReflect ¶
func (x *ServerProbeRequest) ProtoReflect() protoreflect.Message
func (*ServerProbeRequest) Reset ¶
func (x *ServerProbeRequest) Reset()
func (*ServerProbeRequest) String ¶
func (x *ServerProbeRequest) String() string
type ServerProbeResponse ¶
type ServerProbeResponse struct {
// contains filtered or unexported fields
}
func (*ServerProbeResponse) Descriptor
deprecated
func (*ServerProbeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerProbeResponse.ProtoReflect.Descriptor instead.
func (*ServerProbeResponse) ProtoMessage ¶
func (*ServerProbeResponse) ProtoMessage()
func (*ServerProbeResponse) ProtoReflect ¶
func (x *ServerProbeResponse) ProtoReflect() protoreflect.Message
func (*ServerProbeResponse) Reset ¶
func (x *ServerProbeResponse) Reset()
func (*ServerProbeResponse) String ¶
func (x *ServerProbeResponse) String() string
type ServerPushKeyReq ¶ added in v1.0.4
type ServerPushKeyReq struct {
// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// The swap hash.
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
// The client’s private key used in the HTLC’s aggregated internal key.
InternalPrivkey []byte `protobuf:"bytes,3,opt,name=internal_privkey,json=internalPrivkey,proto3" json:"internal_privkey,omitempty"`
// contains filtered or unexported fields
}
func (*ServerPushKeyReq) Descriptor
deprecated
added in
v1.0.4
func (*ServerPushKeyReq) Descriptor() ([]byte, []int)
Deprecated: Use ServerPushKeyReq.ProtoReflect.Descriptor instead.
func (*ServerPushKeyReq) GetInternalPrivkey ¶ added in v1.0.4
func (x *ServerPushKeyReq) GetInternalPrivkey() []byte
func (*ServerPushKeyReq) GetProtocolVersion ¶ added in v1.0.4
func (x *ServerPushKeyReq) GetProtocolVersion() ProtocolVersion
func (*ServerPushKeyReq) GetSwapHash ¶ added in v1.0.4
func (x *ServerPushKeyReq) GetSwapHash() []byte
func (*ServerPushKeyReq) ProtoMessage ¶ added in v1.0.4
func (*ServerPushKeyReq) ProtoMessage()
func (*ServerPushKeyReq) ProtoReflect ¶ added in v1.0.4
func (x *ServerPushKeyReq) ProtoReflect() protoreflect.Message
func (*ServerPushKeyReq) Reset ¶ added in v1.0.4
func (x *ServerPushKeyReq) Reset()
func (*ServerPushKeyReq) String ¶ added in v1.0.4
func (x *ServerPushKeyReq) String() string
type ServerPushKeyRes ¶ added in v1.0.4
type ServerPushKeyRes struct {
// contains filtered or unexported fields
}
func (*ServerPushKeyRes) Descriptor
deprecated
added in
v1.0.4
func (*ServerPushKeyRes) Descriptor() ([]byte, []int)
Deprecated: Use ServerPushKeyRes.ProtoReflect.Descriptor instead.
func (*ServerPushKeyRes) ProtoMessage ¶ added in v1.0.4
func (*ServerPushKeyRes) ProtoMessage()
func (*ServerPushKeyRes) ProtoReflect ¶ added in v1.0.4
func (x *ServerPushKeyRes) ProtoReflect() protoreflect.Message
func (*ServerPushKeyRes) Reset ¶ added in v1.0.4
func (x *ServerPushKeyRes) Reset()
func (*ServerPushKeyRes) String ¶ added in v1.0.4
func (x *ServerPushKeyRes) String() string
type ServerSwapState ¶
type ServerSwapState int32
ServerSwapState is an enum which represents all the states a swap may have from the server's perspective.
const ( // The server has created the swap. ServerSwapState_SERVER_INITIATED ServerSwapState = 0 // The server has published the loop out on chain htlc. ServerSwapState_SERVER_HTLC_PUBLISHED ServerSwapState = 1 // The swap completed successfully. ServerSwapState_SERVER_SUCCESS ServerSwapState = 2 // //The swap failed for a reason that is unknown to the server, this is only //set for older swaps. ServerSwapState_SERVER_FAILED_UNKNOWN ServerSwapState = 3 // No htlc was confirmed in time for the loop in swap to complete. ServerSwapState_SERVER_FAILED_NO_HTLC ServerSwapState = 4 // A loop in htlc confirmed on chain, but it did not have the correct value. ServerSwapState_SERVER_FAILED_INVALID_HTLC_AMOUNT ServerSwapState = 5 // //We did not succeed in completing the loop in off chain payment before the //timeout. ServerSwapState_SERVER_FAILED_OFF_CHAIN_TIMEOUT ServerSwapState = 6 // The on chain timeout was claimed. ServerSwapState_SERVER_FAILED_TIMEOUT ServerSwapState = 7 // //The server could not publish the loop out on chain htlc before the deadline //provided. ServerSwapState_SERVER_FAILED_SWAP_DEADLINE ServerSwapState = 8 // The server could not publish the loop out on chain htlc. ServerSwapState_SERVER_FAILED_HTLC_PUBLICATION ServerSwapState = 9 // The server has published the loop out on chain timeout tx. ServerSwapState_SERVER_TIMEOUT_PUBLISHED ServerSwapState = 10 // The swap has failed for unknown reasons, it will not be completed. ServerSwapState_SERVER_UNEXPECTED_FAILURE ServerSwapState = 11 // The swap htlc has confirmed on chain. ServerSwapState_SERVER_HTLC_CONFIRMED ServerSwapState = 12 // The client canceled the swap because they could not route the prepay. ServerSwapState_SERVER_CLIENT_PREPAY_CANCEL ServerSwapState = 13 // The client canceled the swap because they could not route the swap // payment. ServerSwapState_SERVER_CLIENT_INVOICE_CANCEL ServerSwapState = 14 // //A loop in swap was rejected because it contained multiple outputs for a //single swap. ServerSwapState_SERVER_FAILED_MULTIPLE_SWAP_SCRIPTS ServerSwapState = 15 // //The swap failed during creation. ServerSwapState_SERVER_FAILED_INITIALIZATION ServerSwapState = 16 )
func (ServerSwapState) Descriptor ¶
func (ServerSwapState) Descriptor() protoreflect.EnumDescriptor
func (ServerSwapState) Enum ¶
func (x ServerSwapState) Enum() *ServerSwapState
func (ServerSwapState) EnumDescriptor
deprecated
func (ServerSwapState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServerSwapState.Descriptor instead.
func (ServerSwapState) Number ¶
func (x ServerSwapState) Number() protoreflect.EnumNumber
func (ServerSwapState) String ¶
func (x ServerSwapState) String() string
func (ServerSwapState) Type ¶
func (ServerSwapState) Type() protoreflect.EnumType
type SubscribeLoopInUpdatesResponse ¶
type SubscribeLoopInUpdatesResponse struct {
// The unix timestamp in nanoseconds when the swap was updated.
TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
// The swap's current state.
State ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeLoopInUpdatesResponse) Descriptor
deprecated
func (*SubscribeLoopInUpdatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeLoopInUpdatesResponse.ProtoReflect.Descriptor instead.
func (*SubscribeLoopInUpdatesResponse) GetState ¶
func (x *SubscribeLoopInUpdatesResponse) GetState() ServerSwapState
func (*SubscribeLoopInUpdatesResponse) GetTimestampNs ¶
func (x *SubscribeLoopInUpdatesResponse) GetTimestampNs() int64
func (*SubscribeLoopInUpdatesResponse) ProtoMessage ¶
func (*SubscribeLoopInUpdatesResponse) ProtoMessage()
func (*SubscribeLoopInUpdatesResponse) ProtoReflect ¶
func (x *SubscribeLoopInUpdatesResponse) ProtoReflect() protoreflect.Message
func (*SubscribeLoopInUpdatesResponse) Reset ¶
func (x *SubscribeLoopInUpdatesResponse) Reset()
func (*SubscribeLoopInUpdatesResponse) String ¶
func (x *SubscribeLoopInUpdatesResponse) String() string
type SubscribeLoopOutUpdatesResponse ¶
type SubscribeLoopOutUpdatesResponse struct {
// The unix timestamp in nanoseconds when the swap was updated.
TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
// The swap's current state.
State ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeLoopOutUpdatesResponse) Descriptor
deprecated
func (*SubscribeLoopOutUpdatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeLoopOutUpdatesResponse.ProtoReflect.Descriptor instead.
func (*SubscribeLoopOutUpdatesResponse) GetState ¶
func (x *SubscribeLoopOutUpdatesResponse) GetState() ServerSwapState
func (*SubscribeLoopOutUpdatesResponse) GetTimestampNs ¶
func (x *SubscribeLoopOutUpdatesResponse) GetTimestampNs() int64
func (*SubscribeLoopOutUpdatesResponse) ProtoMessage ¶
func (*SubscribeLoopOutUpdatesResponse) ProtoMessage()
func (*SubscribeLoopOutUpdatesResponse) ProtoReflect ¶
func (x *SubscribeLoopOutUpdatesResponse) ProtoReflect() protoreflect.Message
func (*SubscribeLoopOutUpdatesResponse) Reset ¶
func (x *SubscribeLoopOutUpdatesResponse) Reset()
func (*SubscribeLoopOutUpdatesResponse) String ¶
func (x *SubscribeLoopOutUpdatesResponse) String() string
type SubscribeUpdatesRequest ¶
type SubscribeUpdatesRequest struct {
// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
// Swap hash is the hash of the swap to subscribe to updates for.
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeUpdatesRequest) Descriptor
deprecated
func (*SubscribeUpdatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeUpdatesRequest.ProtoReflect.Descriptor instead.
func (*SubscribeUpdatesRequest) GetProtocolVersion ¶
func (x *SubscribeUpdatesRequest) GetProtocolVersion() ProtocolVersion
func (*SubscribeUpdatesRequest) GetSwapHash ¶
func (x *SubscribeUpdatesRequest) GetSwapHash() []byte
func (*SubscribeUpdatesRequest) ProtoMessage ¶
func (*SubscribeUpdatesRequest) ProtoMessage()
func (*SubscribeUpdatesRequest) ProtoReflect ¶
func (x *SubscribeUpdatesRequest) ProtoReflect() protoreflect.Message
func (*SubscribeUpdatesRequest) Reset ¶
func (x *SubscribeUpdatesRequest) Reset()
func (*SubscribeUpdatesRequest) String ¶
func (x *SubscribeUpdatesRequest) String() string
type SwapServerClient ¶
type SwapServerClient interface {
LoopOutTerms(ctx context.Context, in *ServerLoopOutTermsRequest, opts ...grpc.CallOption) (*ServerLoopOutTerms, error)
NewLoopOutSwap(ctx context.Context, in *ServerLoopOutRequest, opts ...grpc.CallOption) (*ServerLoopOutResponse, error)
LoopOutPushPreimage(ctx context.Context, in *ServerLoopOutPushPreimageRequest, opts ...grpc.CallOption) (*ServerLoopOutPushPreimageResponse, error)
LoopOutQuote(ctx context.Context, in *ServerLoopOutQuoteRequest, opts ...grpc.CallOption) (*ServerLoopOutQuote, error)
LoopInTerms(ctx context.Context, in *ServerLoopInTermsRequest, opts ...grpc.CallOption) (*ServerLoopInTerms, error)
NewLoopInSwap(ctx context.Context, in *ServerLoopInRequest, opts ...grpc.CallOption) (*ServerLoopInResponse, error)
LoopInQuote(ctx context.Context, in *ServerLoopInQuoteRequest, opts ...grpc.CallOption) (*ServerLoopInQuoteResponse, error)
SubscribeLoopOutUpdates(ctx context.Context, in *SubscribeUpdatesRequest, opts ...grpc.CallOption) (SwapServer_SubscribeLoopOutUpdatesClient, error)
SubscribeLoopInUpdates(ctx context.Context, in *SubscribeUpdatesRequest, opts ...grpc.CallOption) (SwapServer_SubscribeLoopInUpdatesClient, error)
CancelLoopOutSwap(ctx context.Context, in *CancelLoopOutSwapRequest, opts ...grpc.CallOption) (*CancelLoopOutSwapResponse, error)
Probe(ctx context.Context, in *ServerProbeRequest, opts ...grpc.CallOption) (*ServerProbeResponse, error)
RecommendRoutingPlugin(ctx context.Context, in *RecommendRoutingPluginReq, opts ...grpc.CallOption) (*RecommendRoutingPluginRes, error)
ReportRoutingResult(ctx context.Context, in *ReportRoutingResultReq, opts ...grpc.CallOption) (*ReportRoutingResultRes, error)
MuSig2SignSweep(ctx context.Context, in *MuSig2SignSweepReq, opts ...grpc.CallOption) (*MuSig2SignSweepRes, error)
PushKey(ctx context.Context, in *ServerPushKeyReq, opts ...grpc.CallOption) (*ServerPushKeyRes, error)
}
SwapServerClient is the client API for SwapServer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSwapServerClient ¶
func NewSwapServerClient(cc grpc.ClientConnInterface) SwapServerClient
type SwapServerServer ¶
type SwapServerServer interface {
LoopOutTerms(context.Context, *ServerLoopOutTermsRequest) (*ServerLoopOutTerms, error)
NewLoopOutSwap(context.Context, *ServerLoopOutRequest) (*ServerLoopOutResponse, error)
LoopOutPushPreimage(context.Context, *ServerLoopOutPushPreimageRequest) (*ServerLoopOutPushPreimageResponse, error)
LoopOutQuote(context.Context, *ServerLoopOutQuoteRequest) (*ServerLoopOutQuote, error)
LoopInTerms(context.Context, *ServerLoopInTermsRequest) (*ServerLoopInTerms, error)
NewLoopInSwap(context.Context, *ServerLoopInRequest) (*ServerLoopInResponse, error)
LoopInQuote(context.Context, *ServerLoopInQuoteRequest) (*ServerLoopInQuoteResponse, error)
SubscribeLoopOutUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopOutUpdatesServer) error
SubscribeLoopInUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopInUpdatesServer) error
CancelLoopOutSwap(context.Context, *CancelLoopOutSwapRequest) (*CancelLoopOutSwapResponse, error)
Probe(context.Context, *ServerProbeRequest) (*ServerProbeResponse, error)
RecommendRoutingPlugin(context.Context, *RecommendRoutingPluginReq) (*RecommendRoutingPluginRes, error)
ReportRoutingResult(context.Context, *ReportRoutingResultReq) (*ReportRoutingResultRes, error)
MuSig2SignSweep(context.Context, *MuSig2SignSweepReq) (*MuSig2SignSweepRes, error)
PushKey(context.Context, *ServerPushKeyReq) (*ServerPushKeyRes, error)
// contains filtered or unexported methods
}
SwapServerServer is the server API for SwapServer service. All implementations must embed UnimplementedSwapServerServer for forward compatibility
type SwapServer_SubscribeLoopInUpdatesClient ¶
type SwapServer_SubscribeLoopInUpdatesClient interface {
Recv() (*SubscribeLoopInUpdatesResponse, error)
grpc.ClientStream
}
type SwapServer_SubscribeLoopInUpdatesServer ¶
type SwapServer_SubscribeLoopInUpdatesServer interface {
Send(*SubscribeLoopInUpdatesResponse) error
grpc.ServerStream
}
type SwapServer_SubscribeLoopOutUpdatesClient ¶
type SwapServer_SubscribeLoopOutUpdatesClient interface {
Recv() (*SubscribeLoopOutUpdatesResponse, error)
grpc.ClientStream
}
type SwapServer_SubscribeLoopOutUpdatesServer ¶
type SwapServer_SubscribeLoopOutUpdatesServer interface {
Send(*SubscribeLoopOutUpdatesResponse) error
grpc.ServerStream
}
type UnimplementedSwapServerServer ¶
type UnimplementedSwapServerServer struct {
}
UnimplementedSwapServerServer must be embedded to have forward compatible implementations.
func (UnimplementedSwapServerServer) CancelLoopOutSwap ¶
func (UnimplementedSwapServerServer) CancelLoopOutSwap(context.Context, *CancelLoopOutSwapRequest) (*CancelLoopOutSwapResponse, error)
func (UnimplementedSwapServerServer) LoopInQuote ¶
func (UnimplementedSwapServerServer) LoopInQuote(context.Context, *ServerLoopInQuoteRequest) (*ServerLoopInQuoteResponse, error)
func (UnimplementedSwapServerServer) LoopInTerms ¶
func (UnimplementedSwapServerServer) LoopInTerms(context.Context, *ServerLoopInTermsRequest) (*ServerLoopInTerms, error)
func (UnimplementedSwapServerServer) LoopOutPushPreimage ¶
func (UnimplementedSwapServerServer) LoopOutPushPreimage(context.Context, *ServerLoopOutPushPreimageRequest) (*ServerLoopOutPushPreimageResponse, error)
func (UnimplementedSwapServerServer) LoopOutQuote ¶
func (UnimplementedSwapServerServer) LoopOutQuote(context.Context, *ServerLoopOutQuoteRequest) (*ServerLoopOutQuote, error)
func (UnimplementedSwapServerServer) LoopOutTerms ¶
func (UnimplementedSwapServerServer) LoopOutTerms(context.Context, *ServerLoopOutTermsRequest) (*ServerLoopOutTerms, error)
func (UnimplementedSwapServerServer) MuSig2SignSweep ¶ added in v1.0.2
func (UnimplementedSwapServerServer) MuSig2SignSweep(context.Context, *MuSig2SignSweepReq) (*MuSig2SignSweepRes, error)
func (UnimplementedSwapServerServer) NewLoopInSwap ¶
func (UnimplementedSwapServerServer) NewLoopInSwap(context.Context, *ServerLoopInRequest) (*ServerLoopInResponse, error)
func (UnimplementedSwapServerServer) NewLoopOutSwap ¶
func (UnimplementedSwapServerServer) NewLoopOutSwap(context.Context, *ServerLoopOutRequest) (*ServerLoopOutResponse, error)
func (UnimplementedSwapServerServer) Probe ¶
func (UnimplementedSwapServerServer) Probe(context.Context, *ServerProbeRequest) (*ServerProbeResponse, error)
func (UnimplementedSwapServerServer) PushKey ¶ added in v1.0.4
func (UnimplementedSwapServerServer) PushKey(context.Context, *ServerPushKeyReq) (*ServerPushKeyRes, error)
func (UnimplementedSwapServerServer) RecommendRoutingPlugin ¶ added in v1.0.1
func (UnimplementedSwapServerServer) RecommendRoutingPlugin(context.Context, *RecommendRoutingPluginReq) (*RecommendRoutingPluginRes, error)
func (UnimplementedSwapServerServer) ReportRoutingResult ¶ added in v1.0.1
func (UnimplementedSwapServerServer) ReportRoutingResult(context.Context, *ReportRoutingResultReq) (*ReportRoutingResultRes, error)
func (UnimplementedSwapServerServer) SubscribeLoopInUpdates ¶
func (UnimplementedSwapServerServer) SubscribeLoopInUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopInUpdatesServer) error
func (UnimplementedSwapServerServer) SubscribeLoopOutUpdates ¶
func (UnimplementedSwapServerServer) SubscribeLoopOutUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopOutUpdatesServer) error
type UnsafeSwapServerServer ¶
type UnsafeSwapServerServer interface {
// contains filtered or unexported methods
}
UnsafeSwapServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SwapServerServer will result in compilation errors.