2021-07-29 13:32:53 +02:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package looprpc
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
// 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.
type SwapClientClient interface {
// loop: `out`
2024-04-17 15:49:04 -03:00
// 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().
2021-07-29 13:32:53 +02:00
LoopOut ( ctx context . Context , in * LoopOutRequest , opts ... grpc . CallOption ) ( * SwapResponse , error )
// loop: `in`
2024-04-17 15:49:04 -03:00
// 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().
2021-07-29 13:32:53 +02:00
LoopIn ( ctx context . Context , in * LoopInRequest , opts ... grpc . CallOption ) ( * SwapResponse , error )
// loop: `monitor`
2024-04-17 15:49:04 -03:00
// Monitor will return a stream of swap updates for currently active swaps.
2021-07-29 13:32:53 +02:00
Monitor ( ctx context . Context , in * MonitorRequest , opts ... grpc . CallOption ) ( SwapClient_MonitorClient , error )
// loop: `listswaps`
2024-04-17 15:49:04 -03:00
// ListSwaps returns a list of all currently known swaps and their current
// status.
2021-07-29 13:32:53 +02:00
ListSwaps ( ctx context . Context , in * ListSwapsRequest , opts ... grpc . CallOption ) ( * ListSwapsResponse , error )
2026-01-14 18:08:48 -05:00
// loop: `sweephtlc`
// SweepHtlc spends a swap HTLC output via the preimage (success) path using
// the swap's known preimage or an optionally supplied one.
SweepHtlc ( ctx context . Context , in * SweepHtlcRequest , opts ... grpc . CallOption ) ( * SweepHtlcResponse , error )
2021-07-29 13:32:53 +02:00
// loop: `swapinfo`
2024-04-17 15:49:04 -03:00
// SwapInfo returns all known details about a single swap.
2021-07-29 13:32:53 +02:00
SwapInfo ( ctx context . Context , in * SwapInfoRequest , opts ... grpc . CallOption ) ( * SwapStatus , error )
2023-11-13 14:47:46 +01:00
// loop: `abandonswap`
2024-04-17 15:49:04 -03:00
// AbandonSwap allows the client to abandon a swap.
2023-11-13 14:47:46 +01:00
AbandonSwap ( ctx context . Context , in * AbandonSwapRequest , opts ... grpc . CallOption ) ( * AbandonSwapResponse , error )
2021-07-29 13:32:53 +02:00
// loop: `terms`
2024-04-17 15:49:04 -03:00
// LoopOutTerms returns the terms that the server enforces for a loop out swap.
2021-07-29 13:32:53 +02:00
LoopOutTerms ( ctx context . Context , in * TermsRequest , opts ... grpc . CallOption ) ( * OutTermsResponse , error )
// loop: `quote`
2024-04-17 15:49:04 -03:00
// LoopOutQuote returns a quote for a loop out swap with the provided
// parameters.
2021-07-29 13:32:53 +02:00
LoopOutQuote ( ctx context . Context , in * QuoteRequest , opts ... grpc . CallOption ) ( * OutQuoteResponse , error )
// loop: `terms`
2024-04-17 15:49:04 -03:00
// GetTerms returns the terms that the server enforces for swaps.
2021-07-29 13:32:53 +02:00
GetLoopInTerms ( ctx context . Context , in * TermsRequest , opts ... grpc . CallOption ) ( * InTermsResponse , error )
// loop: `quote`
2024-04-17 15:49:04 -03:00
// GetQuote returns a quote for a swap with the provided parameters.
2021-07-29 13:32:53 +02:00
GetLoopInQuote ( ctx context . Context , in * QuoteRequest , opts ... grpc . CallOption ) ( * InQuoteResponse , error )
2024-04-17 15:49:04 -03:00
// Probe asks he sever to probe the route to us to have a better upfront
// estimate about routing fees when loopin-in.
2021-05-10 16:55:53 +02:00
Probe ( ctx context . Context , in * ProbeRequest , opts ... grpc . CallOption ) ( * ProbeResponse , error )
2021-07-29 13:32:53 +02:00
// loop: `listauth`
2024-04-17 15:57:59 -03:00
// GetL402Tokens returns all L402 tokens the daemon ever paid for.
GetL402Tokens ( ctx context . Context , in * TokensRequest , opts ... grpc . CallOption ) ( * TokensResponse , error )
2024-04-25 12:04:03 -03:00
// Deprecated: use GetL402Tokens.
// This API is provided to maintain backward compatibility with gRPC clients
// (e.g. `loop listauth`, Terminal Web, RTL).
// Type LsatToken used by GetLsatTokens in the past was renamed to L402Token,
// but this does not affect binary encoding, so we can use type L402Token here.
GetLsatTokens ( ctx context . Context , in * TokensRequest , opts ... grpc . CallOption ) ( * TokensResponse , error )
2024-10-30 14:21:36 +01:00
// loop: `fetchl402`
// FetchL402Token fetches an L402 token from the server, this is required in
// order to receive reservation notifications from the server.
FetchL402Token ( ctx context . Context , in * FetchL402TokenRequest , opts ... grpc . CallOption ) ( * FetchL402TokenResponse , error )
2023-05-24 12:39:47 +02:00
// loop: `getinfo`
2024-04-17 15:49:04 -03:00
// GetInfo gets basic information about the loop daemon.
2023-05-24 12:39:47 +02:00
GetInfo ( ctx context . Context , in * GetInfoRequest , opts ... grpc . CallOption ) ( * GetInfoResponse , error )
2025-11-19 20:07:01 -03:00
// loop: `stop`
// StopDaemon instructs the daemon to shut down gracefully.
StopDaemon ( ctx context . Context , in * StopDaemonRequest , opts ... grpc . CallOption ) ( * StopDaemonResponse , error )
2021-07-29 13:32:53 +02:00
// loop: `getparams`
2024-04-17 15:49:04 -03:00
// 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.
2021-07-29 13:32:53 +02:00
GetLiquidityParams ( ctx context . Context , in * GetLiquidityParamsRequest , opts ... grpc . CallOption ) ( * LiquidityParameters , error )
// loop: `setparams`
2024-04-17 15:49:04 -03:00
// 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.
2021-07-29 13:32:53 +02:00
SetLiquidityParams ( ctx context . Context , in * SetLiquidityParamsRequest , opts ... grpc . CallOption ) ( * SetLiquidityParamsResponse , error )
// loop: `suggestswaps`
2024-04-17 15:49:04 -03:00
// 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.
2021-07-29 13:32:53 +02:00
SuggestSwaps ( ctx context . Context , in * SuggestSwapsRequest , opts ... grpc . CallOption ) ( * SuggestSwapsResponse , error )
2023-08-25 01:42:35 +02:00
// loop: `listreservations`
2024-04-17 15:49:04 -03:00
// ListReservations returns a list of all reservations the server opened to us.
2023-08-25 01:42:35 +02:00
ListReservations ( ctx context . Context , in * ListReservationsRequest , opts ... grpc . CallOption ) ( * ListReservationsResponse , error )
2023-10-25 23:32:06 +02:00
// loop: `instantout`
2024-04-17 15:49:04 -03:00
// InstantOut initiates an instant out swap with the given parameters.
2023-10-25 23:32:06 +02:00
InstantOut ( ctx context . Context , in * InstantOutRequest , opts ... grpc . CallOption ) ( * InstantOutResponse , error )
2024-02-06 19:15:27 +01:00
// loop: `instantoutquote`
2024-04-17 15:49:04 -03:00
// InstantOutQuote returns a quote for an instant out swap with the provided
// parameters.
2024-02-06 19:15:27 +01:00
InstantOutQuote ( ctx context . Context , in * InstantOutQuoteRequest , opts ... grpc . CallOption ) ( * InstantOutQuoteResponse , error )
2024-03-01 14:34:53 +01:00
// loop: `listinstantouts`
2024-04-17 15:49:04 -03:00
// ListInstantOuts returns a list of all currently known instant out swaps and
// their current status.
2024-03-01 14:34:53 +01:00
ListInstantOuts ( ctx context . Context , in * ListInstantOutsRequest , opts ... grpc . CallOption ) ( * ListInstantOutsResponse , error )
2024-11-14 15:34:17 +01:00
// loop: `static newstaticaddress`
// NewStaticAddress requests a new static address for loop-ins from the server.
NewStaticAddress ( ctx context . Context , in * NewStaticAddressRequest , opts ... grpc . CallOption ) ( * NewStaticAddressResponse , error )
// loop: `static listunspentdeposits`
// ListUnspentDeposits returns a list of utxos deposited at a static address.
ListUnspentDeposits ( ctx context . Context , in * ListUnspentDepositsRequest , opts ... grpc . CallOption ) ( * ListUnspentDepositsResponse , error )
// loop:`static withdraw`
// WithdrawDeposits withdraws a selection or all deposits of a static address.
WithdrawDeposits ( ctx context . Context , in * WithdrawDepositsRequest , opts ... grpc . CallOption ) ( * WithdrawDepositsResponse , error )
// loop:`listdeposits`
// ListStaticAddressDeposits returns a list of filtered static address
// deposits.
ListStaticAddressDeposits ( ctx context . Context , in * ListStaticAddressDepositsRequest , opts ... grpc . CallOption ) ( * ListStaticAddressDepositsResponse , error )
2025-05-13 11:34:02 +02:00
// loop:`listwithdrawals`
// ListStaticAddressWithdrawals returns a list of static address withdrawals.
ListStaticAddressWithdrawals ( ctx context . Context , in * ListStaticAddressWithdrawalRequest , opts ... grpc . CallOption ) ( * ListStaticAddressWithdrawalResponse , error )
2024-11-14 15:34:17 +01:00
// loop:`listswaps`
// ListStaticAddressSwaps returns a list of filtered static address
// swaps.
ListStaticAddressSwaps ( ctx context . Context , in * ListStaticAddressSwapsRequest , opts ... grpc . CallOption ) ( * ListStaticAddressSwapsResponse , error )
// loop:`static summary`
// GetStaticAddressSummary returns a summary of static address related
// statistics.
GetStaticAddressSummary ( ctx context . Context , in * StaticAddressSummaryRequest , opts ... grpc . CallOption ) ( * StaticAddressSummaryResponse , error )
2025-05-21 14:08:54 +02:00
// loop:`static in`
2024-11-14 15:34:17 +01:00
// StaticAddressLoopIn initiates a static address loop-in swap.
StaticAddressLoopIn ( ctx context . Context , in * StaticAddressLoopInRequest , opts ... grpc . CallOption ) ( * StaticAddressLoopInResponse , error )
2025-05-21 14:08:54 +02:00
// loop:`static openchannel`
// StaticOpenChannel opens a channel funded by selected static address
// deposits.
StaticOpenChannel ( ctx context . Context , in * StaticOpenChannelRequest , opts ... grpc . CallOption ) ( * StaticOpenChannelResponse , error )
2021-07-29 13:32:53 +02:00
}
type swapClientClient struct {
cc grpc . ClientConnInterface
}
func NewSwapClientClient ( cc grpc . ClientConnInterface ) SwapClientClient {
return & swapClientClient { cc }
}
func ( c * swapClientClient ) LoopOut ( ctx context . Context , in * LoopOutRequest , opts ... grpc . CallOption ) ( * SwapResponse , error ) {
out := new ( SwapResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/LoopOut" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) LoopIn ( ctx context . Context , in * LoopInRequest , opts ... grpc . CallOption ) ( * SwapResponse , error ) {
out := new ( SwapResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/LoopIn" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) Monitor ( ctx context . Context , in * MonitorRequest , opts ... grpc . CallOption ) ( SwapClient_MonitorClient , error ) {
stream , err := c . cc . NewStream ( ctx , & SwapClient_ServiceDesc . Streams [ 0 ] , "/looprpc.SwapClient/Monitor" , opts ... )
if err != nil {
return nil , err
}
x := & swapClientMonitorClient { stream }
if err := x . ClientStream . SendMsg ( in ) ; err != nil {
return nil , err
}
if err := x . ClientStream . CloseSend ( ) ; err != nil {
return nil , err
}
return x , nil
}
type SwapClient_MonitorClient interface {
Recv ( ) ( * SwapStatus , error )
grpc . ClientStream
}
type swapClientMonitorClient struct {
grpc . ClientStream
}
func ( x * swapClientMonitorClient ) Recv ( ) ( * SwapStatus , error ) {
m := new ( SwapStatus )
if err := x . ClientStream . RecvMsg ( m ) ; err != nil {
return nil , err
}
return m , nil
}
func ( c * swapClientClient ) ListSwaps ( ctx context . Context , in * ListSwapsRequest , opts ... grpc . CallOption ) ( * ListSwapsResponse , error ) {
out := new ( ListSwapsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/ListSwaps" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-01-14 18:08:48 -05:00
func ( c * swapClientClient ) SweepHtlc ( ctx context . Context , in * SweepHtlcRequest , opts ... grpc . CallOption ) ( * SweepHtlcResponse , error ) {
out := new ( SweepHtlcResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/SweepHtlc" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-29 13:32:53 +02:00
func ( c * swapClientClient ) SwapInfo ( ctx context . Context , in * SwapInfoRequest , opts ... grpc . CallOption ) ( * SwapStatus , error ) {
out := new ( SwapStatus )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/SwapInfo" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-11-13 14:47:46 +01:00
func ( c * swapClientClient ) AbandonSwap ( ctx context . Context , in * AbandonSwapRequest , opts ... grpc . CallOption ) ( * AbandonSwapResponse , error ) {
out := new ( AbandonSwapResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/AbandonSwap" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-29 13:32:53 +02:00
func ( c * swapClientClient ) LoopOutTerms ( ctx context . Context , in * TermsRequest , opts ... grpc . CallOption ) ( * OutTermsResponse , error ) {
out := new ( OutTermsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/LoopOutTerms" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) LoopOutQuote ( ctx context . Context , in * QuoteRequest , opts ... grpc . CallOption ) ( * OutQuoteResponse , error ) {
out := new ( OutQuoteResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/LoopOutQuote" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) GetLoopInTerms ( ctx context . Context , in * TermsRequest , opts ... grpc . CallOption ) ( * InTermsResponse , error ) {
out := new ( InTermsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/GetLoopInTerms" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) GetLoopInQuote ( ctx context . Context , in * QuoteRequest , opts ... grpc . CallOption ) ( * InQuoteResponse , error ) {
out := new ( InQuoteResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/GetLoopInQuote" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-05-10 16:55:53 +02:00
func ( c * swapClientClient ) Probe ( ctx context . Context , in * ProbeRequest , opts ... grpc . CallOption ) ( * ProbeResponse , error ) {
out := new ( ProbeResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/Probe" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2024-04-17 15:57:59 -03:00
func ( c * swapClientClient ) GetL402Tokens ( ctx context . Context , in * TokensRequest , opts ... grpc . CallOption ) ( * TokensResponse , error ) {
2021-07-29 13:32:53 +02:00
out := new ( TokensResponse )
2024-04-17 15:57:59 -03:00
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/GetL402Tokens" , in , out , opts ... )
2021-07-29 13:32:53 +02:00
if err != nil {
return nil , err
}
return out , nil
}
2024-04-25 12:04:03 -03:00
func ( c * swapClientClient ) GetLsatTokens ( ctx context . Context , in * TokensRequest , opts ... grpc . CallOption ) ( * TokensResponse , error ) {
out := new ( TokensResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/GetLsatTokens" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2024-10-30 14:21:36 +01:00
func ( c * swapClientClient ) FetchL402Token ( ctx context . Context , in * FetchL402TokenRequest , opts ... grpc . CallOption ) ( * FetchL402TokenResponse , error ) {
out := new ( FetchL402TokenResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/FetchL402Token" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-05-24 12:39:47 +02:00
func ( c * swapClientClient ) GetInfo ( ctx context . Context , in * GetInfoRequest , opts ... grpc . CallOption ) ( * GetInfoResponse , error ) {
out := new ( GetInfoResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/GetInfo" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2025-11-19 20:07:01 -03:00
func ( c * swapClientClient ) StopDaemon ( ctx context . Context , in * StopDaemonRequest , opts ... grpc . CallOption ) ( * StopDaemonResponse , error ) {
out := new ( StopDaemonResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/StopDaemon" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-29 13:32:53 +02:00
func ( c * swapClientClient ) GetLiquidityParams ( ctx context . Context , in * GetLiquidityParamsRequest , opts ... grpc . CallOption ) ( * LiquidityParameters , error ) {
out := new ( LiquidityParameters )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/GetLiquidityParams" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) SetLiquidityParams ( ctx context . Context , in * SetLiquidityParamsRequest , opts ... grpc . CallOption ) ( * SetLiquidityParamsResponse , error ) {
out := new ( SetLiquidityParamsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/SetLiquidityParams" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) SuggestSwaps ( ctx context . Context , in * SuggestSwapsRequest , opts ... grpc . CallOption ) ( * SuggestSwapsResponse , error ) {
out := new ( SuggestSwapsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/SuggestSwaps" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-08-25 01:42:35 +02:00
func ( c * swapClientClient ) ListReservations ( ctx context . Context , in * ListReservationsRequest , opts ... grpc . CallOption ) ( * ListReservationsResponse , error ) {
out := new ( ListReservationsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/ListReservations" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-10-25 23:32:06 +02:00
func ( c * swapClientClient ) InstantOut ( ctx context . Context , in * InstantOutRequest , opts ... grpc . CallOption ) ( * InstantOutResponse , error ) {
out := new ( InstantOutResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/InstantOut" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2024-02-06 19:15:27 +01:00
func ( c * swapClientClient ) InstantOutQuote ( ctx context . Context , in * InstantOutQuoteRequest , opts ... grpc . CallOption ) ( * InstantOutQuoteResponse , error ) {
out := new ( InstantOutQuoteResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/InstantOutQuote" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2024-03-01 14:34:53 +01:00
func ( c * swapClientClient ) ListInstantOuts ( ctx context . Context , in * ListInstantOutsRequest , opts ... grpc . CallOption ) ( * ListInstantOutsResponse , error ) {
out := new ( ListInstantOutsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/ListInstantOuts" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2024-11-14 15:34:17 +01:00
func ( c * swapClientClient ) NewStaticAddress ( ctx context . Context , in * NewStaticAddressRequest , opts ... grpc . CallOption ) ( * NewStaticAddressResponse , error ) {
out := new ( NewStaticAddressResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/NewStaticAddress" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) ListUnspentDeposits ( ctx context . Context , in * ListUnspentDepositsRequest , opts ... grpc . CallOption ) ( * ListUnspentDepositsResponse , error ) {
out := new ( ListUnspentDepositsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/ListUnspentDeposits" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) WithdrawDeposits ( ctx context . Context , in * WithdrawDepositsRequest , opts ... grpc . CallOption ) ( * WithdrawDepositsResponse , error ) {
out := new ( WithdrawDepositsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/WithdrawDeposits" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) ListStaticAddressDeposits ( ctx context . Context , in * ListStaticAddressDepositsRequest , opts ... grpc . CallOption ) ( * ListStaticAddressDepositsResponse , error ) {
out := new ( ListStaticAddressDepositsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/ListStaticAddressDeposits" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2025-05-13 11:34:02 +02:00
func ( c * swapClientClient ) ListStaticAddressWithdrawals ( ctx context . Context , in * ListStaticAddressWithdrawalRequest , opts ... grpc . CallOption ) ( * ListStaticAddressWithdrawalResponse , error ) {
out := new ( ListStaticAddressWithdrawalResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/ListStaticAddressWithdrawals" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2024-11-14 15:34:17 +01:00
func ( c * swapClientClient ) ListStaticAddressSwaps ( ctx context . Context , in * ListStaticAddressSwapsRequest , opts ... grpc . CallOption ) ( * ListStaticAddressSwapsResponse , error ) {
out := new ( ListStaticAddressSwapsResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/ListStaticAddressSwaps" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) GetStaticAddressSummary ( ctx context . Context , in * StaticAddressSummaryRequest , opts ... grpc . CallOption ) ( * StaticAddressSummaryResponse , error ) {
out := new ( StaticAddressSummaryResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/GetStaticAddressSummary" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapClientClient ) StaticAddressLoopIn ( ctx context . Context , in * StaticAddressLoopInRequest , opts ... grpc . CallOption ) ( * StaticAddressLoopInResponse , error ) {
out := new ( StaticAddressLoopInResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/StaticAddressLoopIn" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2025-05-21 14:08:54 +02:00
func ( c * swapClientClient ) StaticOpenChannel ( ctx context . Context , in * StaticOpenChannelRequest , opts ... grpc . CallOption ) ( * StaticOpenChannelResponse , error ) {
out := new ( StaticOpenChannelResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapClient/StaticOpenChannel" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-29 13:32:53 +02:00
// SwapClientServer is the server API for SwapClient service.
// All implementations must embed UnimplementedSwapClientServer
// for forward compatibility
type SwapClientServer interface {
// loop: `out`
2024-04-17 15:49:04 -03:00
// 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().
2021-07-29 13:32:53 +02:00
LoopOut ( context . Context , * LoopOutRequest ) ( * SwapResponse , error )
// loop: `in`
2024-04-17 15:49:04 -03:00
// 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().
2021-07-29 13:32:53 +02:00
LoopIn ( context . Context , * LoopInRequest ) ( * SwapResponse , error )
// loop: `monitor`
2024-04-17 15:49:04 -03:00
// Monitor will return a stream of swap updates for currently active swaps.
2021-07-29 13:32:53 +02:00
Monitor ( * MonitorRequest , SwapClient_MonitorServer ) error
// loop: `listswaps`
2024-04-17 15:49:04 -03:00
// ListSwaps returns a list of all currently known swaps and their current
// status.
2021-07-29 13:32:53 +02:00
ListSwaps ( context . Context , * ListSwapsRequest ) ( * ListSwapsResponse , error )
2026-01-14 18:08:48 -05:00
// loop: `sweephtlc`
// SweepHtlc spends a swap HTLC output via the preimage (success) path using
// the swap's known preimage or an optionally supplied one.
SweepHtlc ( context . Context , * SweepHtlcRequest ) ( * SweepHtlcResponse , error )
2021-07-29 13:32:53 +02:00
// loop: `swapinfo`
2024-04-17 15:49:04 -03:00
// SwapInfo returns all known details about a single swap.
2021-07-29 13:32:53 +02:00
SwapInfo ( context . Context , * SwapInfoRequest ) ( * SwapStatus , error )
2023-11-13 14:47:46 +01:00
// loop: `abandonswap`
2024-04-17 15:49:04 -03:00
// AbandonSwap allows the client to abandon a swap.
2023-11-13 14:47:46 +01:00
AbandonSwap ( context . Context , * AbandonSwapRequest ) ( * AbandonSwapResponse , error )
2021-07-29 13:32:53 +02:00
// loop: `terms`
2024-04-17 15:49:04 -03:00
// LoopOutTerms returns the terms that the server enforces for a loop out swap.
2021-07-29 13:32:53 +02:00
LoopOutTerms ( context . Context , * TermsRequest ) ( * OutTermsResponse , error )
// loop: `quote`
2024-04-17 15:49:04 -03:00
// LoopOutQuote returns a quote for a loop out swap with the provided
// parameters.
2021-07-29 13:32:53 +02:00
LoopOutQuote ( context . Context , * QuoteRequest ) ( * OutQuoteResponse , error )
// loop: `terms`
2024-04-17 15:49:04 -03:00
// GetTerms returns the terms that the server enforces for swaps.
2021-07-29 13:32:53 +02:00
GetLoopInTerms ( context . Context , * TermsRequest ) ( * InTermsResponse , error )
// loop: `quote`
2024-04-17 15:49:04 -03:00
// GetQuote returns a quote for a swap with the provided parameters.
2021-07-29 13:32:53 +02:00
GetLoopInQuote ( context . Context , * QuoteRequest ) ( * InQuoteResponse , error )
2024-04-17 15:49:04 -03:00
// Probe asks he sever to probe the route to us to have a better upfront
// estimate about routing fees when loopin-in.
2021-05-10 16:55:53 +02:00
Probe ( context . Context , * ProbeRequest ) ( * ProbeResponse , error )
2021-07-29 13:32:53 +02:00
// loop: `listauth`
2024-04-17 15:57:59 -03:00
// GetL402Tokens returns all L402 tokens the daemon ever paid for.
GetL402Tokens ( context . Context , * TokensRequest ) ( * TokensResponse , error )
2024-04-25 12:04:03 -03:00
// Deprecated: use GetL402Tokens.
// This API is provided to maintain backward compatibility with gRPC clients
// (e.g. `loop listauth`, Terminal Web, RTL).
// Type LsatToken used by GetLsatTokens in the past was renamed to L402Token,
// but this does not affect binary encoding, so we can use type L402Token here.
GetLsatTokens ( context . Context , * TokensRequest ) ( * TokensResponse , error )
2024-10-30 14:21:36 +01:00
// loop: `fetchl402`
// FetchL402Token fetches an L402 token from the server, this is required in
// order to receive reservation notifications from the server.
FetchL402Token ( context . Context , * FetchL402TokenRequest ) ( * FetchL402TokenResponse , error )
2023-05-24 12:39:47 +02:00
// loop: `getinfo`
2024-04-17 15:49:04 -03:00
// GetInfo gets basic information about the loop daemon.
2023-05-24 12:39:47 +02:00
GetInfo ( context . Context , * GetInfoRequest ) ( * GetInfoResponse , error )
2025-11-19 20:07:01 -03:00
// loop: `stop`
// StopDaemon instructs the daemon to shut down gracefully.
StopDaemon ( context . Context , * StopDaemonRequest ) ( * StopDaemonResponse , error )
2021-07-29 13:32:53 +02:00
// loop: `getparams`
2024-04-17 15:49:04 -03:00
// 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.
2021-07-29 13:32:53 +02:00
GetLiquidityParams ( context . Context , * GetLiquidityParamsRequest ) ( * LiquidityParameters , error )
// loop: `setparams`
2024-04-17 15:49:04 -03:00
// 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.
2021-07-29 13:32:53 +02:00
SetLiquidityParams ( context . Context , * SetLiquidityParamsRequest ) ( * SetLiquidityParamsResponse , error )
// loop: `suggestswaps`
2024-04-17 15:49:04 -03:00
// 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.
2021-07-29 13:32:53 +02:00
SuggestSwaps ( context . Context , * SuggestSwapsRequest ) ( * SuggestSwapsResponse , error )
2023-08-25 01:42:35 +02:00
// loop: `listreservations`
2024-04-17 15:49:04 -03:00
// ListReservations returns a list of all reservations the server opened to us.
2023-08-25 01:42:35 +02:00
ListReservations ( context . Context , * ListReservationsRequest ) ( * ListReservationsResponse , error )
2023-10-25 23:32:06 +02:00
// loop: `instantout`
2024-04-17 15:49:04 -03:00
// InstantOut initiates an instant out swap with the given parameters.
2023-10-25 23:32:06 +02:00
InstantOut ( context . Context , * InstantOutRequest ) ( * InstantOutResponse , error )
2024-02-06 19:15:27 +01:00
// loop: `instantoutquote`
2024-04-17 15:49:04 -03:00
// InstantOutQuote returns a quote for an instant out swap with the provided
// parameters.
2024-02-06 19:15:27 +01:00
InstantOutQuote ( context . Context , * InstantOutQuoteRequest ) ( * InstantOutQuoteResponse , error )
2024-03-01 14:34:53 +01:00
// loop: `listinstantouts`
2024-04-17 15:49:04 -03:00
// ListInstantOuts returns a list of all currently known instant out swaps and
// their current status.
2024-03-01 14:34:53 +01:00
ListInstantOuts ( context . Context , * ListInstantOutsRequest ) ( * ListInstantOutsResponse , error )
2024-11-14 15:34:17 +01:00
// loop: `static newstaticaddress`
// NewStaticAddress requests a new static address for loop-ins from the server.
NewStaticAddress ( context . Context , * NewStaticAddressRequest ) ( * NewStaticAddressResponse , error )
// loop: `static listunspentdeposits`
// ListUnspentDeposits returns a list of utxos deposited at a static address.
ListUnspentDeposits ( context . Context , * ListUnspentDepositsRequest ) ( * ListUnspentDepositsResponse , error )
// loop:`static withdraw`
// WithdrawDeposits withdraws a selection or all deposits of a static address.
WithdrawDeposits ( context . Context , * WithdrawDepositsRequest ) ( * WithdrawDepositsResponse , error )
// loop:`listdeposits`
// ListStaticAddressDeposits returns a list of filtered static address
// deposits.
ListStaticAddressDeposits ( context . Context , * ListStaticAddressDepositsRequest ) ( * ListStaticAddressDepositsResponse , error )
2025-05-13 11:34:02 +02:00
// loop:`listwithdrawals`
// ListStaticAddressWithdrawals returns a list of static address withdrawals.
ListStaticAddressWithdrawals ( context . Context , * ListStaticAddressWithdrawalRequest ) ( * ListStaticAddressWithdrawalResponse , error )
2024-11-14 15:34:17 +01:00
// loop:`listswaps`
// ListStaticAddressSwaps returns a list of filtered static address
// swaps.
ListStaticAddressSwaps ( context . Context , * ListStaticAddressSwapsRequest ) ( * ListStaticAddressSwapsResponse , error )
// loop:`static summary`
// GetStaticAddressSummary returns a summary of static address related
// statistics.
GetStaticAddressSummary ( context . Context , * StaticAddressSummaryRequest ) ( * StaticAddressSummaryResponse , error )
2025-05-21 14:08:54 +02:00
// loop:`static in`
2024-11-14 15:34:17 +01:00
// StaticAddressLoopIn initiates a static address loop-in swap.
StaticAddressLoopIn ( context . Context , * StaticAddressLoopInRequest ) ( * StaticAddressLoopInResponse , error )
2025-05-21 14:08:54 +02:00
// loop:`static openchannel`
// StaticOpenChannel opens a channel funded by selected static address
// deposits.
StaticOpenChannel ( context . Context , * StaticOpenChannelRequest ) ( * StaticOpenChannelResponse , error )
2021-07-29 13:32:53 +02:00
mustEmbedUnimplementedSwapClientServer ( )
}
// UnimplementedSwapClientServer must be embedded to have forward compatible implementations.
type UnimplementedSwapClientServer struct {
}
func ( UnimplementedSwapClientServer ) LoopOut ( context . Context , * LoopOutRequest ) ( * SwapResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method LoopOut not implemented" )
}
func ( UnimplementedSwapClientServer ) LoopIn ( context . Context , * LoopInRequest ) ( * SwapResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method LoopIn not implemented" )
}
func ( UnimplementedSwapClientServer ) Monitor ( * MonitorRequest , SwapClient_MonitorServer ) error {
return status . Errorf ( codes . Unimplemented , "method Monitor not implemented" )
}
func ( UnimplementedSwapClientServer ) ListSwaps ( context . Context , * ListSwapsRequest ) ( * ListSwapsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListSwaps not implemented" )
}
2026-01-14 18:08:48 -05:00
func ( UnimplementedSwapClientServer ) SweepHtlc ( context . Context , * SweepHtlcRequest ) ( * SweepHtlcResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SweepHtlc not implemented" )
}
2021-07-29 13:32:53 +02:00
func ( UnimplementedSwapClientServer ) SwapInfo ( context . Context , * SwapInfoRequest ) ( * SwapStatus , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SwapInfo not implemented" )
}
2023-11-13 14:47:46 +01:00
func ( UnimplementedSwapClientServer ) AbandonSwap ( context . Context , * AbandonSwapRequest ) ( * AbandonSwapResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method AbandonSwap not implemented" )
}
2021-07-29 13:32:53 +02:00
func ( UnimplementedSwapClientServer ) LoopOutTerms ( context . Context , * TermsRequest ) ( * OutTermsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method LoopOutTerms not implemented" )
}
func ( UnimplementedSwapClientServer ) LoopOutQuote ( context . Context , * QuoteRequest ) ( * OutQuoteResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method LoopOutQuote not implemented" )
}
func ( UnimplementedSwapClientServer ) GetLoopInTerms ( context . Context , * TermsRequest ) ( * InTermsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetLoopInTerms not implemented" )
}
func ( UnimplementedSwapClientServer ) GetLoopInQuote ( context . Context , * QuoteRequest ) ( * InQuoteResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetLoopInQuote not implemented" )
}
2021-05-10 16:55:53 +02:00
func ( UnimplementedSwapClientServer ) Probe ( context . Context , * ProbeRequest ) ( * ProbeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Probe not implemented" )
}
2024-04-17 15:57:59 -03:00
func ( UnimplementedSwapClientServer ) GetL402Tokens ( context . Context , * TokensRequest ) ( * TokensResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetL402Tokens not implemented" )
2021-07-29 13:32:53 +02:00
}
2024-04-25 12:04:03 -03:00
func ( UnimplementedSwapClientServer ) GetLsatTokens ( context . Context , * TokensRequest ) ( * TokensResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetLsatTokens not implemented" )
}
2024-10-30 14:21:36 +01:00
func ( UnimplementedSwapClientServer ) FetchL402Token ( context . Context , * FetchL402TokenRequest ) ( * FetchL402TokenResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method FetchL402Token not implemented" )
}
2023-05-24 12:39:47 +02:00
func ( UnimplementedSwapClientServer ) GetInfo ( context . Context , * GetInfoRequest ) ( * GetInfoResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetInfo not implemented" )
}
2025-11-19 20:07:01 -03:00
func ( UnimplementedSwapClientServer ) StopDaemon ( context . Context , * StopDaemonRequest ) ( * StopDaemonResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method StopDaemon not implemented" )
}
2021-07-29 13:32:53 +02:00
func ( UnimplementedSwapClientServer ) GetLiquidityParams ( context . Context , * GetLiquidityParamsRequest ) ( * LiquidityParameters , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetLiquidityParams not implemented" )
}
func ( UnimplementedSwapClientServer ) SetLiquidityParams ( context . Context , * SetLiquidityParamsRequest ) ( * SetLiquidityParamsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SetLiquidityParams not implemented" )
}
func ( UnimplementedSwapClientServer ) SuggestSwaps ( context . Context , * SuggestSwapsRequest ) ( * SuggestSwapsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SuggestSwaps not implemented" )
}
2023-08-25 01:42:35 +02:00
func ( UnimplementedSwapClientServer ) ListReservations ( context . Context , * ListReservationsRequest ) ( * ListReservationsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListReservations not implemented" )
}
2023-10-25 23:32:06 +02:00
func ( UnimplementedSwapClientServer ) InstantOut ( context . Context , * InstantOutRequest ) ( * InstantOutResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method InstantOut not implemented" )
}
2024-02-06 19:15:27 +01:00
func ( UnimplementedSwapClientServer ) InstantOutQuote ( context . Context , * InstantOutQuoteRequest ) ( * InstantOutQuoteResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method InstantOutQuote not implemented" )
}
2024-03-01 14:34:53 +01:00
func ( UnimplementedSwapClientServer ) ListInstantOuts ( context . Context , * ListInstantOutsRequest ) ( * ListInstantOutsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListInstantOuts not implemented" )
}
2024-11-14 15:34:17 +01:00
func ( UnimplementedSwapClientServer ) NewStaticAddress ( context . Context , * NewStaticAddressRequest ) ( * NewStaticAddressResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method NewStaticAddress not implemented" )
}
func ( UnimplementedSwapClientServer ) ListUnspentDeposits ( context . Context , * ListUnspentDepositsRequest ) ( * ListUnspentDepositsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListUnspentDeposits not implemented" )
}
func ( UnimplementedSwapClientServer ) WithdrawDeposits ( context . Context , * WithdrawDepositsRequest ) ( * WithdrawDepositsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method WithdrawDeposits not implemented" )
}
func ( UnimplementedSwapClientServer ) ListStaticAddressDeposits ( context . Context , * ListStaticAddressDepositsRequest ) ( * ListStaticAddressDepositsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListStaticAddressDeposits not implemented" )
}
2025-05-13 11:34:02 +02:00
func ( UnimplementedSwapClientServer ) ListStaticAddressWithdrawals ( context . Context , * ListStaticAddressWithdrawalRequest ) ( * ListStaticAddressWithdrawalResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListStaticAddressWithdrawals not implemented" )
}
2024-11-14 15:34:17 +01:00
func ( UnimplementedSwapClientServer ) ListStaticAddressSwaps ( context . Context , * ListStaticAddressSwapsRequest ) ( * ListStaticAddressSwapsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListStaticAddressSwaps not implemented" )
}
func ( UnimplementedSwapClientServer ) GetStaticAddressSummary ( context . Context , * StaticAddressSummaryRequest ) ( * StaticAddressSummaryResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetStaticAddressSummary not implemented" )
}
func ( UnimplementedSwapClientServer ) StaticAddressLoopIn ( context . Context , * StaticAddressLoopInRequest ) ( * StaticAddressLoopInResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method StaticAddressLoopIn not implemented" )
}
2025-05-21 14:08:54 +02:00
func ( UnimplementedSwapClientServer ) StaticOpenChannel ( context . Context , * StaticOpenChannelRequest ) ( * StaticOpenChannelResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method StaticOpenChannel not implemented" )
}
2021-07-29 13:32:53 +02:00
func ( UnimplementedSwapClientServer ) mustEmbedUnimplementedSwapClientServer ( ) { }
// 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.
type UnsafeSwapClientServer interface {
mustEmbedUnimplementedSwapClientServer ( )
}
func RegisterSwapClientServer ( s grpc . ServiceRegistrar , srv SwapClientServer ) {
s . RegisterService ( & SwapClient_ServiceDesc , srv )
}
func _SwapClient_LoopOut_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( LoopOutRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . LoopOut ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/LoopOut" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . LoopOut ( ctx , req . ( * LoopOutRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_LoopIn_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( LoopInRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . LoopIn ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/LoopIn" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . LoopIn ( ctx , req . ( * LoopInRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_Monitor_Handler ( srv interface { } , stream grpc . ServerStream ) error {
m := new ( MonitorRequest )
if err := stream . RecvMsg ( m ) ; err != nil {
return err
}
return srv . ( SwapClientServer ) . Monitor ( m , & swapClientMonitorServer { stream } )
}
type SwapClient_MonitorServer interface {
Send ( * SwapStatus ) error
grpc . ServerStream
}
type swapClientMonitorServer struct {
grpc . ServerStream
}
func ( x * swapClientMonitorServer ) Send ( m * SwapStatus ) error {
return x . ServerStream . SendMsg ( m )
}
func _SwapClient_ListSwaps_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListSwapsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . ListSwaps ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/ListSwaps" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . ListSwaps ( ctx , req . ( * ListSwapsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2026-01-14 18:08:48 -05:00
func _SwapClient_SweepHtlc_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SweepHtlcRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . SweepHtlc ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/SweepHtlc" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . SweepHtlc ( ctx , req . ( * SweepHtlcRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-29 13:32:53 +02:00
func _SwapClient_SwapInfo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SwapInfoRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . SwapInfo ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/SwapInfo" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . SwapInfo ( ctx , req . ( * SwapInfoRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-11-13 14:47:46 +01:00
func _SwapClient_AbandonSwap_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( AbandonSwapRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . AbandonSwap ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/AbandonSwap" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . AbandonSwap ( ctx , req . ( * AbandonSwapRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-29 13:32:53 +02:00
func _SwapClient_LoopOutTerms_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( TermsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . LoopOutTerms ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/LoopOutTerms" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . LoopOutTerms ( ctx , req . ( * TermsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_LoopOutQuote_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( QuoteRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . LoopOutQuote ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/LoopOutQuote" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . LoopOutQuote ( ctx , req . ( * QuoteRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_GetLoopInTerms_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( TermsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . GetLoopInTerms ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/GetLoopInTerms" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . GetLoopInTerms ( ctx , req . ( * TermsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_GetLoopInQuote_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( QuoteRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . GetLoopInQuote ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/GetLoopInQuote" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . GetLoopInQuote ( ctx , req . ( * QuoteRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-05-10 16:55:53 +02:00
func _SwapClient_Probe_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ProbeRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . Probe ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/Probe" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . Probe ( ctx , req . ( * ProbeRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-04-17 15:57:59 -03:00
func _SwapClient_GetL402Tokens_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2021-07-29 13:32:53 +02:00
in := new ( TokensRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-04-17 15:57:59 -03:00
return srv . ( SwapClientServer ) . GetL402Tokens ( ctx , in )
2021-07-29 13:32:53 +02:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-04-17 15:57:59 -03:00
FullMethod : "/looprpc.SwapClient/GetL402Tokens" ,
2021-07-29 13:32:53 +02:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-04-17 15:57:59 -03:00
return srv . ( SwapClientServer ) . GetL402Tokens ( ctx , req . ( * TokensRequest ) )
2021-07-29 13:32:53 +02:00
}
return interceptor ( ctx , in , info , handler )
}
2024-04-25 12:04:03 -03:00
func _SwapClient_GetLsatTokens_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( TokensRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . GetLsatTokens ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/GetLsatTokens" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . GetLsatTokens ( ctx , req . ( * TokensRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-10-30 14:21:36 +01:00
func _SwapClient_FetchL402Token_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( FetchL402TokenRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . FetchL402Token ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/FetchL402Token" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . FetchL402Token ( ctx , req . ( * FetchL402TokenRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-05-24 12:39:47 +02:00
func _SwapClient_GetInfo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetInfoRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . GetInfo ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/GetInfo" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . GetInfo ( ctx , req . ( * GetInfoRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2025-11-19 20:07:01 -03:00
func _SwapClient_StopDaemon_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( StopDaemonRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . StopDaemon ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/StopDaemon" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . StopDaemon ( ctx , req . ( * StopDaemonRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-29 13:32:53 +02:00
func _SwapClient_GetLiquidityParams_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetLiquidityParamsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . GetLiquidityParams ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/GetLiquidityParams" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . GetLiquidityParams ( ctx , req . ( * GetLiquidityParamsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_SetLiquidityParams_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SetLiquidityParamsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . SetLiquidityParams ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/SetLiquidityParams" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . SetLiquidityParams ( ctx , req . ( * SetLiquidityParamsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_SuggestSwaps_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SuggestSwapsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . SuggestSwaps ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/SuggestSwaps" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . SuggestSwaps ( ctx , req . ( * SuggestSwapsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-08-25 01:42:35 +02:00
func _SwapClient_ListReservations_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListReservationsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . ListReservations ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/ListReservations" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . ListReservations ( ctx , req . ( * ListReservationsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-10-25 23:32:06 +02:00
func _SwapClient_InstantOut_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( InstantOutRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . InstantOut ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/InstantOut" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . InstantOut ( ctx , req . ( * InstantOutRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-02-06 19:15:27 +01:00
func _SwapClient_InstantOutQuote_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( InstantOutQuoteRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . InstantOutQuote ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/InstantOutQuote" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . InstantOutQuote ( ctx , req . ( * InstantOutQuoteRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-03-01 14:34:53 +01:00
func _SwapClient_ListInstantOuts_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListInstantOutsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . ListInstantOuts ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/ListInstantOuts" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . ListInstantOuts ( ctx , req . ( * ListInstantOutsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-11-14 15:34:17 +01:00
func _SwapClient_NewStaticAddress_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( NewStaticAddressRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . NewStaticAddress ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/NewStaticAddress" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . NewStaticAddress ( ctx , req . ( * NewStaticAddressRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_ListUnspentDeposits_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListUnspentDepositsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . ListUnspentDeposits ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/ListUnspentDeposits" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . ListUnspentDeposits ( ctx , req . ( * ListUnspentDepositsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_WithdrawDeposits_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( WithdrawDepositsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . WithdrawDeposits ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/WithdrawDeposits" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . WithdrawDeposits ( ctx , req . ( * WithdrawDepositsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_ListStaticAddressDeposits_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListStaticAddressDepositsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . ListStaticAddressDeposits ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/ListStaticAddressDeposits" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . ListStaticAddressDeposits ( ctx , req . ( * ListStaticAddressDepositsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2025-05-13 11:34:02 +02:00
func _SwapClient_ListStaticAddressWithdrawals_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListStaticAddressWithdrawalRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . ListStaticAddressWithdrawals ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/ListStaticAddressWithdrawals" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . ListStaticAddressWithdrawals ( ctx , req . ( * ListStaticAddressWithdrawalRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-11-14 15:34:17 +01:00
func _SwapClient_ListStaticAddressSwaps_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListStaticAddressSwapsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . ListStaticAddressSwaps ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/ListStaticAddressSwaps" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . ListStaticAddressSwaps ( ctx , req . ( * ListStaticAddressSwapsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_GetStaticAddressSummary_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( StaticAddressSummaryRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . GetStaticAddressSummary ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/GetStaticAddressSummary" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . GetStaticAddressSummary ( ctx , req . ( * StaticAddressSummaryRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapClient_StaticAddressLoopIn_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( StaticAddressLoopInRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . StaticAddressLoopIn ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/StaticAddressLoopIn" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . StaticAddressLoopIn ( ctx , req . ( * StaticAddressLoopInRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2025-05-21 14:08:54 +02:00
func _SwapClient_StaticOpenChannel_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( StaticOpenChannelRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapClientServer ) . StaticOpenChannel ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapClient/StaticOpenChannel" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapClientServer ) . StaticOpenChannel ( ctx , req . ( * StaticOpenChannelRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-29 13:32:53 +02:00
// 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)
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 ,
} ,
2026-01-14 18:08:48 -05:00
{
MethodName : "SweepHtlc" ,
Handler : _SwapClient_SweepHtlc_Handler ,
} ,
2021-07-29 13:32:53 +02:00
{
MethodName : "SwapInfo" ,
Handler : _SwapClient_SwapInfo_Handler ,
} ,
2023-11-13 14:47:46 +01:00
{
MethodName : "AbandonSwap" ,
Handler : _SwapClient_AbandonSwap_Handler ,
} ,
2021-07-29 13:32:53 +02:00
{
MethodName : "LoopOutTerms" ,
Handler : _SwapClient_LoopOutTerms_Handler ,
} ,
{
MethodName : "LoopOutQuote" ,
Handler : _SwapClient_LoopOutQuote_Handler ,
} ,
{
MethodName : "GetLoopInTerms" ,
Handler : _SwapClient_GetLoopInTerms_Handler ,
} ,
{
MethodName : "GetLoopInQuote" ,
Handler : _SwapClient_GetLoopInQuote_Handler ,
} ,
2021-05-10 16:55:53 +02:00
{
MethodName : "Probe" ,
Handler : _SwapClient_Probe_Handler ,
} ,
2021-07-29 13:32:53 +02:00
{
2024-04-17 15:57:59 -03:00
MethodName : "GetL402Tokens" ,
Handler : _SwapClient_GetL402Tokens_Handler ,
2021-07-29 13:32:53 +02:00
} ,
2024-04-25 12:04:03 -03:00
{
MethodName : "GetLsatTokens" ,
Handler : _SwapClient_GetLsatTokens_Handler ,
} ,
2024-10-30 14:21:36 +01:00
{
MethodName : "FetchL402Token" ,
Handler : _SwapClient_FetchL402Token_Handler ,
} ,
2023-05-24 12:39:47 +02:00
{
MethodName : "GetInfo" ,
Handler : _SwapClient_GetInfo_Handler ,
} ,
2025-11-19 20:07:01 -03:00
{
MethodName : "StopDaemon" ,
Handler : _SwapClient_StopDaemon_Handler ,
} ,
2021-07-29 13:32:53 +02:00
{
MethodName : "GetLiquidityParams" ,
Handler : _SwapClient_GetLiquidityParams_Handler ,
} ,
{
MethodName : "SetLiquidityParams" ,
Handler : _SwapClient_SetLiquidityParams_Handler ,
} ,
{
MethodName : "SuggestSwaps" ,
Handler : _SwapClient_SuggestSwaps_Handler ,
} ,
2023-08-25 01:42:35 +02:00
{
MethodName : "ListReservations" ,
Handler : _SwapClient_ListReservations_Handler ,
} ,
2023-10-25 23:32:06 +02:00
{
MethodName : "InstantOut" ,
Handler : _SwapClient_InstantOut_Handler ,
} ,
2024-02-06 19:15:27 +01:00
{
MethodName : "InstantOutQuote" ,
Handler : _SwapClient_InstantOutQuote_Handler ,
} ,
2024-03-01 14:34:53 +01:00
{
MethodName : "ListInstantOuts" ,
Handler : _SwapClient_ListInstantOuts_Handler ,
} ,
2024-11-14 15:34:17 +01:00
{
MethodName : "NewStaticAddress" ,
Handler : _SwapClient_NewStaticAddress_Handler ,
} ,
{
MethodName : "ListUnspentDeposits" ,
Handler : _SwapClient_ListUnspentDeposits_Handler ,
} ,
{
MethodName : "WithdrawDeposits" ,
Handler : _SwapClient_WithdrawDeposits_Handler ,
} ,
{
MethodName : "ListStaticAddressDeposits" ,
Handler : _SwapClient_ListStaticAddressDeposits_Handler ,
} ,
2025-05-13 11:34:02 +02:00
{
MethodName : "ListStaticAddressWithdrawals" ,
Handler : _SwapClient_ListStaticAddressWithdrawals_Handler ,
} ,
2024-11-14 15:34:17 +01:00
{
MethodName : "ListStaticAddressSwaps" ,
Handler : _SwapClient_ListStaticAddressSwaps_Handler ,
} ,
{
MethodName : "GetStaticAddressSummary" ,
Handler : _SwapClient_GetStaticAddressSummary_Handler ,
} ,
{
MethodName : "StaticAddressLoopIn" ,
Handler : _SwapClient_StaticAddressLoopIn_Handler ,
} ,
2025-05-21 14:08:54 +02:00
{
MethodName : "StaticOpenChannel" ,
Handler : _SwapClient_StaticOpenChannel_Handler ,
} ,
2021-07-29 13:32:53 +02:00
} ,
Streams : [ ] grpc . StreamDesc {
{
StreamName : "Monitor" ,
Handler : _SwapClient_Monitor_Handler ,
ServerStreams : true ,
} ,
} ,
Metadata : "client.proto" ,
}