Documentation ¶
Overview ¶
Package provider is a generated GoMock package.
Package provider is a generated GoMock package.
Index ¶
- Constants
- type LoopProvider
- func (l *LoopProvider) GetSwapStatus(ctx context.Context, swapId string, client looprpc.SwapClientClient) (looprpc.SwapStatus, error)
- func (l *LoopProvider) MonitorSwap(ctx context.Context, swapId string, swapClient looprpc.SwapClientClient) (looprpc.SwapStatus, error)
- func (l *LoopProvider) RequestReverseSubmarineSwap(ctx context.Context, request ReverseSubmarineSwapRequest, ...) (ReverseSubmarineSwapResponse, error)
- func (l *LoopProvider) RequestSubmarineSwap(ctx context.Context, request SubmarineSwapRequest, ...) (SubmarineSwapResponse, error)
- type MockProvider
- func (m *MockProvider) EXPECT() *MockProviderMockRecorder
- func (m *MockProvider) GetSwapStatus(arg0 context.Context, arg1 string, arg2 looprpc.SwapClientClient) (looprpc.SwapStatus, error)
- func (m *MockProvider) MonitorSwap(arg0 context.Context, arg1 string, arg2 looprpc.SwapClientClient) (looprpc.SwapStatus, error)
- func (m *MockProvider) RequestReverseSubmarineSwap(arg0 context.Context, arg1 ReverseSubmarineSwapRequest, ...) (ReverseSubmarineSwapResponse, error)
- func (m *MockProvider) RequestSubmarineSwap(arg0 context.Context, arg1 SubmarineSwapRequest, arg2 looprpc.SwapClientClient) (SubmarineSwapResponse, error)
- type MockProviderMockRecorder
- func (mr *MockProviderMockRecorder) GetSwapStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockProviderMockRecorder) MonitorSwap(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockProviderMockRecorder) RequestReverseSubmarineSwap(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockProviderMockRecorder) RequestSubmarineSwap(arg0, arg1, arg2 any) *gomock.Call
- type MockSwapClientClient
- func (m *MockSwapClientClient) AbandonSwap(ctx context.Context, in *looprpc.AbandonSwapRequest, opts ...grpc.CallOption) (*looprpc.AbandonSwapResponse, error)
- func (m *MockSwapClientClient) EXPECT() *MockSwapClientClientMockRecorder
- func (m *MockSwapClientClient) GetInfo(ctx context.Context, in *looprpc.GetInfoRequest, opts ...grpc.CallOption) (*looprpc.GetInfoResponse, error)
- func (m *MockSwapClientClient) GetLiquidityParams(ctx context.Context, in *looprpc.GetLiquidityParamsRequest, ...) (*looprpc.LiquidityParameters, error)
- func (m *MockSwapClientClient) GetLoopInQuote(ctx context.Context, in *looprpc.QuoteRequest, opts ...grpc.CallOption) (*looprpc.InQuoteResponse, error)
- func (m *MockSwapClientClient) GetLoopInTerms(ctx context.Context, in *looprpc.TermsRequest, opts ...grpc.CallOption) (*looprpc.InTermsResponse, error)
- func (m *MockSwapClientClient) GetLsatTokens(ctx context.Context, in *looprpc.TokensRequest, opts ...grpc.CallOption) (*looprpc.TokensResponse, error)
- func (m *MockSwapClientClient) InstantOut(ctx context.Context, in *looprpc.InstantOutRequest, opts ...grpc.CallOption) (*looprpc.InstantOutResponse, error)
- func (m *MockSwapClientClient) InstantOutQuote(ctx context.Context, in *looprpc.InstantOutQuoteRequest, ...) (*looprpc.InstantOutQuoteResponse, error)
- func (m *MockSwapClientClient) ListReservations(ctx context.Context, in *looprpc.ListReservationsRequest, ...) (*looprpc.ListReservationsResponse, error)
- func (m *MockSwapClientClient) ListSwaps(ctx context.Context, in *looprpc.ListSwapsRequest, opts ...grpc.CallOption) (*looprpc.ListSwapsResponse, error)
- func (m *MockSwapClientClient) LoopIn(ctx context.Context, in *looprpc.LoopInRequest, opts ...grpc.CallOption) (*looprpc.SwapResponse, error)
- func (m *MockSwapClientClient) LoopOut(ctx context.Context, in *looprpc.LoopOutRequest, opts ...grpc.CallOption) (*looprpc.SwapResponse, error)
- func (m *MockSwapClientClient) LoopOutQuote(ctx context.Context, in *looprpc.QuoteRequest, opts ...grpc.CallOption) (*looprpc.OutQuoteResponse, error)
- func (m *MockSwapClientClient) LoopOutTerms(ctx context.Context, in *looprpc.TermsRequest, opts ...grpc.CallOption) (*looprpc.OutTermsResponse, error)
- func (m *MockSwapClientClient) Monitor(ctx context.Context, in *looprpc.MonitorRequest, opts ...grpc.CallOption) (looprpc.SwapClient_MonitorClient, error)
- func (m *MockSwapClientClient) Probe(ctx context.Context, in *looprpc.ProbeRequest, opts ...grpc.CallOption) (*looprpc.ProbeResponse, error)
- func (m *MockSwapClientClient) SetLiquidityParams(ctx context.Context, in *looprpc.SetLiquidityParamsRequest, ...) (*looprpc.SetLiquidityParamsResponse, error)
- func (m *MockSwapClientClient) SuggestSwaps(ctx context.Context, in *looprpc.SuggestSwapsRequest, opts ...grpc.CallOption) (*looprpc.SuggestSwapsResponse, error)
- func (m *MockSwapClientClient) SwapInfo(ctx context.Context, in *looprpc.SwapInfoRequest, opts ...grpc.CallOption) (*looprpc.SwapStatus, error)
- type MockSwapClientClientMockRecorder
- func (mr *MockSwapClientClientMockRecorder) AbandonSwap(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) GetInfo(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) GetLiquidityParams(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) GetLoopInQuote(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) GetLoopInTerms(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) GetLsatTokens(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) InstantOut(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) InstantOutQuote(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) ListReservations(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) ListSwaps(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) LoopIn(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) LoopOut(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) LoopOutQuote(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) LoopOutTerms(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) Monitor(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) Probe(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) SetLiquidityParams(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) SuggestSwaps(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSwapClientClientMockRecorder) SwapInfo(ctx, in any, opts ...any) *gomock.Call
- type MockSwapClientServer
- func (m *MockSwapClientServer) AbandonSwap(arg0 context.Context, arg1 *looprpc.AbandonSwapRequest) (*looprpc.AbandonSwapResponse, error)
- func (m *MockSwapClientServer) EXPECT() *MockSwapClientServerMockRecorder
- func (m *MockSwapClientServer) GetInfo(arg0 context.Context, arg1 *looprpc.GetInfoRequest) (*looprpc.GetInfoResponse, error)
- func (m *MockSwapClientServer) GetLiquidityParams(arg0 context.Context, arg1 *looprpc.GetLiquidityParamsRequest) (*looprpc.LiquidityParameters, error)
- func (m *MockSwapClientServer) GetLoopInQuote(arg0 context.Context, arg1 *looprpc.QuoteRequest) (*looprpc.InQuoteResponse, error)
- func (m *MockSwapClientServer) GetLoopInTerms(arg0 context.Context, arg1 *looprpc.TermsRequest) (*looprpc.InTermsResponse, error)
- func (m *MockSwapClientServer) GetLsatTokens(arg0 context.Context, arg1 *looprpc.TokensRequest) (*looprpc.TokensResponse, error)
- func (m *MockSwapClientServer) InstantOut(arg0 context.Context, arg1 *looprpc.InstantOutRequest) (*looprpc.InstantOutResponse, error)
- func (m *MockSwapClientServer) InstantOutQuote(arg0 context.Context, arg1 *looprpc.InstantOutQuoteRequest) (*looprpc.InstantOutQuoteResponse, error)
- func (m *MockSwapClientServer) ListReservations(arg0 context.Context, arg1 *looprpc.ListReservationsRequest) (*looprpc.ListReservationsResponse, error)
- func (m *MockSwapClientServer) ListSwaps(arg0 context.Context, arg1 *looprpc.ListSwapsRequest) (*looprpc.ListSwapsResponse, error)
- func (m *MockSwapClientServer) LoopIn(arg0 context.Context, arg1 *looprpc.LoopInRequest) (*looprpc.SwapResponse, error)
- func (m *MockSwapClientServer) LoopOut(arg0 context.Context, arg1 *looprpc.LoopOutRequest) (*looprpc.SwapResponse, error)
- func (m *MockSwapClientServer) LoopOutQuote(arg0 context.Context, arg1 *looprpc.QuoteRequest) (*looprpc.OutQuoteResponse, error)
- func (m *MockSwapClientServer) LoopOutTerms(arg0 context.Context, arg1 *looprpc.TermsRequest) (*looprpc.OutTermsResponse, error)
- func (m *MockSwapClientServer) Monitor(arg0 *looprpc.MonitorRequest, arg1 looprpc.SwapClient_MonitorServer) error
- func (m *MockSwapClientServer) Probe(arg0 context.Context, arg1 *looprpc.ProbeRequest) (*looprpc.ProbeResponse, error)
- func (m *MockSwapClientServer) SetLiquidityParams(arg0 context.Context, arg1 *looprpc.SetLiquidityParamsRequest) (*looprpc.SetLiquidityParamsResponse, error)
- func (m *MockSwapClientServer) SuggestSwaps(arg0 context.Context, arg1 *looprpc.SuggestSwapsRequest) (*looprpc.SuggestSwapsResponse, error)
- func (m *MockSwapClientServer) SwapInfo(arg0 context.Context, arg1 *looprpc.SwapInfoRequest) (*looprpc.SwapStatus, error)
- type MockSwapClientServerMockRecorder
- func (mr *MockSwapClientServerMockRecorder) AbandonSwap(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) GetInfo(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) GetLiquidityParams(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) GetLoopInQuote(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) GetLoopInTerms(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) GetLsatTokens(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) InstantOut(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) InstantOutQuote(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) ListReservations(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) ListSwaps(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) LoopIn(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) LoopOut(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) LoopOutQuote(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) LoopOutTerms(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) Monitor(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) Probe(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) SetLiquidityParams(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) SuggestSwaps(arg0, arg1 any) *gomock.Call
- func (mr *MockSwapClientServerMockRecorder) SwapInfo(arg0, arg1 any) *gomock.Call
- type MockSwapClient_MonitorClient
- func (m *MockSwapClient_MonitorClient) CloseSend() error
- func (m *MockSwapClient_MonitorClient) Context() context.Context
- func (m *MockSwapClient_MonitorClient) EXPECT() *MockSwapClient_MonitorClientMockRecorder
- func (m *MockSwapClient_MonitorClient) Header() (metadata.MD, error)
- func (m *MockSwapClient_MonitorClient) Recv() (*looprpc.SwapStatus, error)
- func (m_2 *MockSwapClient_MonitorClient) RecvMsg(m any) error
- func (m_2 *MockSwapClient_MonitorClient) SendMsg(m any) error
- func (m *MockSwapClient_MonitorClient) Trailer() metadata.MD
- type MockSwapClient_MonitorClientMockRecorder
- func (mr *MockSwapClient_MonitorClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockSwapClient_MonitorClientMockRecorder) Context() *gomock.Call
- func (mr *MockSwapClient_MonitorClientMockRecorder) Header() *gomock.Call
- func (mr *MockSwapClient_MonitorClientMockRecorder) Recv() *gomock.Call
- func (mr *MockSwapClient_MonitorClientMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockSwapClient_MonitorClientMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockSwapClient_MonitorClientMockRecorder) Trailer() *gomock.Call
- type MockSwapClient_MonitorServer
- func (m *MockSwapClient_MonitorServer) Context() context.Context
- func (m *MockSwapClient_MonitorServer) EXPECT() *MockSwapClient_MonitorServerMockRecorder
- func (m_2 *MockSwapClient_MonitorServer) RecvMsg(m any) error
- func (m *MockSwapClient_MonitorServer) Send(arg0 *looprpc.SwapStatus) error
- func (m *MockSwapClient_MonitorServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockSwapClient_MonitorServer) SendMsg(m any) error
- func (m *MockSwapClient_MonitorServer) SetHeader(arg0 metadata.MD) error
- func (m *MockSwapClient_MonitorServer) SetTrailer(arg0 metadata.MD)
- type MockSwapClient_MonitorServerMockRecorder
- func (mr *MockSwapClient_MonitorServerMockRecorder) Context() *gomock.Call
- func (mr *MockSwapClient_MonitorServerMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockSwapClient_MonitorServerMockRecorder) Send(arg0 any) *gomock.Call
- func (mr *MockSwapClient_MonitorServerMockRecorder) SendHeader(arg0 any) *gomock.Call
- func (mr *MockSwapClient_MonitorServerMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockSwapClient_MonitorServerMockRecorder) SetHeader(arg0 any) *gomock.Call
- func (mr *MockSwapClient_MonitorServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
- type MockUnsafeSwapClientServer
- type MockUnsafeSwapClientServerMockRecorder
- type Provider
- type ReverseSubmarineSwapRequest
- type ReverseSubmarineSwapResponse
- type SubmarineSwapRequest
- type SubmarineSwapResponse
Constants ¶
const ( // FeeRateTotalParts defines the granularity of the fee rate. // Throughout the codebase, we'll use fix based arithmetic to compute // fees. FeeRateTotalParts = 1e6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoopProvider ¶
type LoopProvider struct { }
func (*LoopProvider) GetSwapStatus ¶
func (l *LoopProvider) GetSwapStatus(ctx context.Context, swapId string, client looprpc.SwapClientClient) (looprpc.SwapStatus, error)
Get the status of a swap by invoking SwapInfo method from the client
func (*LoopProvider) MonitorSwap ¶
func (l *LoopProvider) MonitorSwap(ctx context.Context, swapId string, swapClient looprpc.SwapClientClient) (looprpc.SwapStatus, error)
Monitor a swap status changes and stops when the swap is completed or failed
func (*LoopProvider) RequestReverseSubmarineSwap ¶
func (l *LoopProvider) RequestReverseSubmarineSwap(ctx context.Context, request ReverseSubmarineSwapRequest, client looprpc.SwapClientClient) (ReverseSubmarineSwapResponse, error)
Reverse Submarine Swap L2->L1 based on loop (Loop Out)
func (*LoopProvider) RequestSubmarineSwap ¶
func (l *LoopProvider) RequestSubmarineSwap(ctx context.Context, request SubmarineSwapRequest, client looprpc.SwapClientClient) (SubmarineSwapResponse, error)
Submarine Swap L1->L2 based on loop (Loop In)
type MockProvider ¶
type MockProvider struct {
// contains filtered or unexported fields
}
MockProvider is a mock of Provider interface.
func NewMockProvider ¶
func NewMockProvider(ctrl *gomock.Controller) *MockProvider
NewMockProvider creates a new mock instance.
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProvider) GetSwapStatus ¶
func (m *MockProvider) GetSwapStatus(arg0 context.Context, arg1 string, arg2 looprpc.SwapClientClient) (looprpc.SwapStatus, error)
GetSwapStatus mocks base method.
func (*MockProvider) MonitorSwap ¶
func (m *MockProvider) MonitorSwap(arg0 context.Context, arg1 string, arg2 looprpc.SwapClientClient) (looprpc.SwapStatus, error)
MonitorSwap mocks base method.
func (*MockProvider) RequestReverseSubmarineSwap ¶
func (m *MockProvider) RequestReverseSubmarineSwap(arg0 context.Context, arg1 ReverseSubmarineSwapRequest, arg2 looprpc.SwapClientClient) (ReverseSubmarineSwapResponse, error)
RequestReverseSubmarineSwap mocks base method.
func (*MockProvider) RequestSubmarineSwap ¶
func (m *MockProvider) RequestSubmarineSwap(arg0 context.Context, arg1 SubmarineSwapRequest, arg2 looprpc.SwapClientClient) (SubmarineSwapResponse, error)
RequestSubmarineSwap mocks base method.
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider.
func (*MockProviderMockRecorder) GetSwapStatus ¶
func (mr *MockProviderMockRecorder) GetSwapStatus(arg0, arg1, arg2 any) *gomock.Call
GetSwapStatus indicates an expected call of GetSwapStatus.
func (*MockProviderMockRecorder) MonitorSwap ¶
func (mr *MockProviderMockRecorder) MonitorSwap(arg0, arg1, arg2 any) *gomock.Call
MonitorSwap indicates an expected call of MonitorSwap.
func (*MockProviderMockRecorder) RequestReverseSubmarineSwap ¶
func (mr *MockProviderMockRecorder) RequestReverseSubmarineSwap(arg0, arg1, arg2 any) *gomock.Call
RequestReverseSubmarineSwap indicates an expected call of RequestReverseSubmarineSwap.
func (*MockProviderMockRecorder) RequestSubmarineSwap ¶
func (mr *MockProviderMockRecorder) RequestSubmarineSwap(arg0, arg1, arg2 any) *gomock.Call
RequestSubmarineSwap indicates an expected call of RequestSubmarineSwap.
type MockSwapClientClient ¶
type MockSwapClientClient struct {
// contains filtered or unexported fields
}
MockSwapClientClient is a mock of SwapClientClient interface.
func NewMockSwapClientClient ¶
func NewMockSwapClientClient(ctrl *gomock.Controller) *MockSwapClientClient
NewMockSwapClientClient creates a new mock instance.
func (*MockSwapClientClient) AbandonSwap ¶
func (m *MockSwapClientClient) AbandonSwap(ctx context.Context, in *looprpc.AbandonSwapRequest, opts ...grpc.CallOption) (*looprpc.AbandonSwapResponse, error)
AbandonSwap mocks base method.
func (*MockSwapClientClient) EXPECT ¶
func (m *MockSwapClientClient) EXPECT() *MockSwapClientClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSwapClientClient) GetInfo ¶
func (m *MockSwapClientClient) GetInfo(ctx context.Context, in *looprpc.GetInfoRequest, opts ...grpc.CallOption) (*looprpc.GetInfoResponse, error)
GetInfo mocks base method.
func (*MockSwapClientClient) GetLiquidityParams ¶
func (m *MockSwapClientClient) GetLiquidityParams(ctx context.Context, in *looprpc.GetLiquidityParamsRequest, opts ...grpc.CallOption) (*looprpc.LiquidityParameters, error)
GetLiquidityParams mocks base method.
func (*MockSwapClientClient) GetLoopInQuote ¶
func (m *MockSwapClientClient) GetLoopInQuote(ctx context.Context, in *looprpc.QuoteRequest, opts ...grpc.CallOption) (*looprpc.InQuoteResponse, error)
GetLoopInQuote mocks base method.
func (*MockSwapClientClient) GetLoopInTerms ¶
func (m *MockSwapClientClient) GetLoopInTerms(ctx context.Context, in *looprpc.TermsRequest, opts ...grpc.CallOption) (*looprpc.InTermsResponse, error)
GetLoopInTerms mocks base method.
func (*MockSwapClientClient) GetLsatTokens ¶
func (m *MockSwapClientClient) GetLsatTokens(ctx context.Context, in *looprpc.TokensRequest, opts ...grpc.CallOption) (*looprpc.TokensResponse, error)
GetLsatTokens mocks base method.
func (*MockSwapClientClient) InstantOut ¶
func (m *MockSwapClientClient) InstantOut(ctx context.Context, in *looprpc.InstantOutRequest, opts ...grpc.CallOption) (*looprpc.InstantOutResponse, error)
InstantOut mocks base method.
func (*MockSwapClientClient) InstantOutQuote ¶
func (m *MockSwapClientClient) InstantOutQuote(ctx context.Context, in *looprpc.InstantOutQuoteRequest, opts ...grpc.CallOption) (*looprpc.InstantOutQuoteResponse, error)
InstantOutQuote mocks base method.
func (*MockSwapClientClient) ListReservations ¶
func (m *MockSwapClientClient) ListReservations(ctx context.Context, in *looprpc.ListReservationsRequest, opts ...grpc.CallOption) (*looprpc.ListReservationsResponse, error)
ListReservations mocks base method.
func (*MockSwapClientClient) ListSwaps ¶
func (m *MockSwapClientClient) ListSwaps(ctx context.Context, in *looprpc.ListSwapsRequest, opts ...grpc.CallOption) (*looprpc.ListSwapsResponse, error)
ListSwaps mocks base method.
func (*MockSwapClientClient) LoopIn ¶
func (m *MockSwapClientClient) LoopIn(ctx context.Context, in *looprpc.LoopInRequest, opts ...grpc.CallOption) (*looprpc.SwapResponse, error)
LoopIn mocks base method.
func (*MockSwapClientClient) LoopOut ¶
func (m *MockSwapClientClient) LoopOut(ctx context.Context, in *looprpc.LoopOutRequest, opts ...grpc.CallOption) (*looprpc.SwapResponse, error)
LoopOut mocks base method.
func (*MockSwapClientClient) LoopOutQuote ¶
func (m *MockSwapClientClient) LoopOutQuote(ctx context.Context, in *looprpc.QuoteRequest, opts ...grpc.CallOption) (*looprpc.OutQuoteResponse, error)
LoopOutQuote mocks base method.
func (*MockSwapClientClient) LoopOutTerms ¶
func (m *MockSwapClientClient) LoopOutTerms(ctx context.Context, in *looprpc.TermsRequest, opts ...grpc.CallOption) (*looprpc.OutTermsResponse, error)
LoopOutTerms mocks base method.
func (*MockSwapClientClient) Monitor ¶
func (m *MockSwapClientClient) Monitor(ctx context.Context, in *looprpc.MonitorRequest, opts ...grpc.CallOption) (looprpc.SwapClient_MonitorClient, error)
Monitor mocks base method.
func (*MockSwapClientClient) Probe ¶
func (m *MockSwapClientClient) Probe(ctx context.Context, in *looprpc.ProbeRequest, opts ...grpc.CallOption) (*looprpc.ProbeResponse, error)
Probe mocks base method.
func (*MockSwapClientClient) SetLiquidityParams ¶
func (m *MockSwapClientClient) SetLiquidityParams(ctx context.Context, in *looprpc.SetLiquidityParamsRequest, opts ...grpc.CallOption) (*looprpc.SetLiquidityParamsResponse, error)
SetLiquidityParams mocks base method.
func (*MockSwapClientClient) SuggestSwaps ¶
func (m *MockSwapClientClient) SuggestSwaps(ctx context.Context, in *looprpc.SuggestSwapsRequest, opts ...grpc.CallOption) (*looprpc.SuggestSwapsResponse, error)
SuggestSwaps mocks base method.
func (*MockSwapClientClient) SwapInfo ¶
func (m *MockSwapClientClient) SwapInfo(ctx context.Context, in *looprpc.SwapInfoRequest, opts ...grpc.CallOption) (*looprpc.SwapStatus, error)
SwapInfo mocks base method.
type MockSwapClientClientMockRecorder ¶
type MockSwapClientClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSwapClientClientMockRecorder is the mock recorder for MockSwapClientClient.
func (*MockSwapClientClientMockRecorder) AbandonSwap ¶
func (mr *MockSwapClientClientMockRecorder) AbandonSwap(ctx, in any, opts ...any) *gomock.Call
AbandonSwap indicates an expected call of AbandonSwap.
func (*MockSwapClientClientMockRecorder) GetInfo ¶
func (mr *MockSwapClientClientMockRecorder) GetInfo(ctx, in any, opts ...any) *gomock.Call
GetInfo indicates an expected call of GetInfo.
func (*MockSwapClientClientMockRecorder) GetLiquidityParams ¶
func (mr *MockSwapClientClientMockRecorder) GetLiquidityParams(ctx, in any, opts ...any) *gomock.Call
GetLiquidityParams indicates an expected call of GetLiquidityParams.
func (*MockSwapClientClientMockRecorder) GetLoopInQuote ¶
func (mr *MockSwapClientClientMockRecorder) GetLoopInQuote(ctx, in any, opts ...any) *gomock.Call
GetLoopInQuote indicates an expected call of GetLoopInQuote.
func (*MockSwapClientClientMockRecorder) GetLoopInTerms ¶
func (mr *MockSwapClientClientMockRecorder) GetLoopInTerms(ctx, in any, opts ...any) *gomock.Call
GetLoopInTerms indicates an expected call of GetLoopInTerms.
func (*MockSwapClientClientMockRecorder) GetLsatTokens ¶
func (mr *MockSwapClientClientMockRecorder) GetLsatTokens(ctx, in any, opts ...any) *gomock.Call
GetLsatTokens indicates an expected call of GetLsatTokens.
func (*MockSwapClientClientMockRecorder) InstantOut ¶
func (mr *MockSwapClientClientMockRecorder) InstantOut(ctx, in any, opts ...any) *gomock.Call
InstantOut indicates an expected call of InstantOut.
func (*MockSwapClientClientMockRecorder) InstantOutQuote ¶
func (mr *MockSwapClientClientMockRecorder) InstantOutQuote(ctx, in any, opts ...any) *gomock.Call
InstantOutQuote indicates an expected call of InstantOutQuote.
func (*MockSwapClientClientMockRecorder) ListReservations ¶
func (mr *MockSwapClientClientMockRecorder) ListReservations(ctx, in any, opts ...any) *gomock.Call
ListReservations indicates an expected call of ListReservations.
func (*MockSwapClientClientMockRecorder) ListSwaps ¶
func (mr *MockSwapClientClientMockRecorder) ListSwaps(ctx, in any, opts ...any) *gomock.Call
ListSwaps indicates an expected call of ListSwaps.
func (*MockSwapClientClientMockRecorder) LoopIn ¶
func (mr *MockSwapClientClientMockRecorder) LoopIn(ctx, in any, opts ...any) *gomock.Call
LoopIn indicates an expected call of LoopIn.
func (*MockSwapClientClientMockRecorder) LoopOut ¶
func (mr *MockSwapClientClientMockRecorder) LoopOut(ctx, in any, opts ...any) *gomock.Call
LoopOut indicates an expected call of LoopOut.
func (*MockSwapClientClientMockRecorder) LoopOutQuote ¶
func (mr *MockSwapClientClientMockRecorder) LoopOutQuote(ctx, in any, opts ...any) *gomock.Call
LoopOutQuote indicates an expected call of LoopOutQuote.
func (*MockSwapClientClientMockRecorder) LoopOutTerms ¶
func (mr *MockSwapClientClientMockRecorder) LoopOutTerms(ctx, in any, opts ...any) *gomock.Call
LoopOutTerms indicates an expected call of LoopOutTerms.
func (*MockSwapClientClientMockRecorder) Monitor ¶
func (mr *MockSwapClientClientMockRecorder) Monitor(ctx, in any, opts ...any) *gomock.Call
Monitor indicates an expected call of Monitor.
func (*MockSwapClientClientMockRecorder) Probe ¶
func (mr *MockSwapClientClientMockRecorder) Probe(ctx, in any, opts ...any) *gomock.Call
Probe indicates an expected call of Probe.
func (*MockSwapClientClientMockRecorder) SetLiquidityParams ¶
func (mr *MockSwapClientClientMockRecorder) SetLiquidityParams(ctx, in any, opts ...any) *gomock.Call
SetLiquidityParams indicates an expected call of SetLiquidityParams.
func (*MockSwapClientClientMockRecorder) SuggestSwaps ¶
func (mr *MockSwapClientClientMockRecorder) SuggestSwaps(ctx, in any, opts ...any) *gomock.Call
SuggestSwaps indicates an expected call of SuggestSwaps.
type MockSwapClientServer ¶
type MockSwapClientServer struct {
// contains filtered or unexported fields
}
MockSwapClientServer is a mock of SwapClientServer interface.
func NewMockSwapClientServer ¶
func NewMockSwapClientServer(ctrl *gomock.Controller) *MockSwapClientServer
NewMockSwapClientServer creates a new mock instance.
func (*MockSwapClientServer) AbandonSwap ¶
func (m *MockSwapClientServer) AbandonSwap(arg0 context.Context, arg1 *looprpc.AbandonSwapRequest) (*looprpc.AbandonSwapResponse, error)
AbandonSwap mocks base method.
func (*MockSwapClientServer) EXPECT ¶
func (m *MockSwapClientServer) EXPECT() *MockSwapClientServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSwapClientServer) GetInfo ¶
func (m *MockSwapClientServer) GetInfo(arg0 context.Context, arg1 *looprpc.GetInfoRequest) (*looprpc.GetInfoResponse, error)
GetInfo mocks base method.
func (*MockSwapClientServer) GetLiquidityParams ¶
func (m *MockSwapClientServer) GetLiquidityParams(arg0 context.Context, arg1 *looprpc.GetLiquidityParamsRequest) (*looprpc.LiquidityParameters, error)
GetLiquidityParams mocks base method.
func (*MockSwapClientServer) GetLoopInQuote ¶
func (m *MockSwapClientServer) GetLoopInQuote(arg0 context.Context, arg1 *looprpc.QuoteRequest) (*looprpc.InQuoteResponse, error)
GetLoopInQuote mocks base method.
func (*MockSwapClientServer) GetLoopInTerms ¶
func (m *MockSwapClientServer) GetLoopInTerms(arg0 context.Context, arg1 *looprpc.TermsRequest) (*looprpc.InTermsResponse, error)
GetLoopInTerms mocks base method.
func (*MockSwapClientServer) GetLsatTokens ¶
func (m *MockSwapClientServer) GetLsatTokens(arg0 context.Context, arg1 *looprpc.TokensRequest) (*looprpc.TokensResponse, error)
GetLsatTokens mocks base method.
func (*MockSwapClientServer) InstantOut ¶
func (m *MockSwapClientServer) InstantOut(arg0 context.Context, arg1 *looprpc.InstantOutRequest) (*looprpc.InstantOutResponse, error)
InstantOut mocks base method.
func (*MockSwapClientServer) InstantOutQuote ¶
func (m *MockSwapClientServer) InstantOutQuote(arg0 context.Context, arg1 *looprpc.InstantOutQuoteRequest) (*looprpc.InstantOutQuoteResponse, error)
InstantOutQuote mocks base method.
func (*MockSwapClientServer) ListReservations ¶
func (m *MockSwapClientServer) ListReservations(arg0 context.Context, arg1 *looprpc.ListReservationsRequest) (*looprpc.ListReservationsResponse, error)
ListReservations mocks base method.
func (*MockSwapClientServer) ListSwaps ¶
func (m *MockSwapClientServer) ListSwaps(arg0 context.Context, arg1 *looprpc.ListSwapsRequest) (*looprpc.ListSwapsResponse, error)
ListSwaps mocks base method.
func (*MockSwapClientServer) LoopIn ¶
func (m *MockSwapClientServer) LoopIn(arg0 context.Context, arg1 *looprpc.LoopInRequest) (*looprpc.SwapResponse, error)
LoopIn mocks base method.
func (*MockSwapClientServer) LoopOut ¶
func (m *MockSwapClientServer) LoopOut(arg0 context.Context, arg1 *looprpc.LoopOutRequest) (*looprpc.SwapResponse, error)
LoopOut mocks base method.
func (*MockSwapClientServer) LoopOutQuote ¶
func (m *MockSwapClientServer) LoopOutQuote(arg0 context.Context, arg1 *looprpc.QuoteRequest) (*looprpc.OutQuoteResponse, error)
LoopOutQuote mocks base method.
func (*MockSwapClientServer) LoopOutTerms ¶
func (m *MockSwapClientServer) LoopOutTerms(arg0 context.Context, arg1 *looprpc.TermsRequest) (*looprpc.OutTermsResponse, error)
LoopOutTerms mocks base method.
func (*MockSwapClientServer) Monitor ¶
func (m *MockSwapClientServer) Monitor(arg0 *looprpc.MonitorRequest, arg1 looprpc.SwapClient_MonitorServer) error
Monitor mocks base method.
func (*MockSwapClientServer) Probe ¶
func (m *MockSwapClientServer) Probe(arg0 context.Context, arg1 *looprpc.ProbeRequest) (*looprpc.ProbeResponse, error)
Probe mocks base method.
func (*MockSwapClientServer) SetLiquidityParams ¶
func (m *MockSwapClientServer) SetLiquidityParams(arg0 context.Context, arg1 *looprpc.SetLiquidityParamsRequest) (*looprpc.SetLiquidityParamsResponse, error)
SetLiquidityParams mocks base method.
func (*MockSwapClientServer) SuggestSwaps ¶
func (m *MockSwapClientServer) SuggestSwaps(arg0 context.Context, arg1 *looprpc.SuggestSwapsRequest) (*looprpc.SuggestSwapsResponse, error)
SuggestSwaps mocks base method.
func (*MockSwapClientServer) SwapInfo ¶
func (m *MockSwapClientServer) SwapInfo(arg0 context.Context, arg1 *looprpc.SwapInfoRequest) (*looprpc.SwapStatus, error)
SwapInfo mocks base method.
type MockSwapClientServerMockRecorder ¶
type MockSwapClientServerMockRecorder struct {
// contains filtered or unexported fields
}
MockSwapClientServerMockRecorder is the mock recorder for MockSwapClientServer.
func (*MockSwapClientServerMockRecorder) AbandonSwap ¶
func (mr *MockSwapClientServerMockRecorder) AbandonSwap(arg0, arg1 any) *gomock.Call
AbandonSwap indicates an expected call of AbandonSwap.
func (*MockSwapClientServerMockRecorder) GetInfo ¶
func (mr *MockSwapClientServerMockRecorder) GetInfo(arg0, arg1 any) *gomock.Call
GetInfo indicates an expected call of GetInfo.
func (*MockSwapClientServerMockRecorder) GetLiquidityParams ¶
func (mr *MockSwapClientServerMockRecorder) GetLiquidityParams(arg0, arg1 any) *gomock.Call
GetLiquidityParams indicates an expected call of GetLiquidityParams.
func (*MockSwapClientServerMockRecorder) GetLoopInQuote ¶
func (mr *MockSwapClientServerMockRecorder) GetLoopInQuote(arg0, arg1 any) *gomock.Call
GetLoopInQuote indicates an expected call of GetLoopInQuote.
func (*MockSwapClientServerMockRecorder) GetLoopInTerms ¶
func (mr *MockSwapClientServerMockRecorder) GetLoopInTerms(arg0, arg1 any) *gomock.Call
GetLoopInTerms indicates an expected call of GetLoopInTerms.
func (*MockSwapClientServerMockRecorder) GetLsatTokens ¶
func (mr *MockSwapClientServerMockRecorder) GetLsatTokens(arg0, arg1 any) *gomock.Call
GetLsatTokens indicates an expected call of GetLsatTokens.
func (*MockSwapClientServerMockRecorder) InstantOut ¶
func (mr *MockSwapClientServerMockRecorder) InstantOut(arg0, arg1 any) *gomock.Call
InstantOut indicates an expected call of InstantOut.
func (*MockSwapClientServerMockRecorder) InstantOutQuote ¶
func (mr *MockSwapClientServerMockRecorder) InstantOutQuote(arg0, arg1 any) *gomock.Call
InstantOutQuote indicates an expected call of InstantOutQuote.
func (*MockSwapClientServerMockRecorder) ListReservations ¶
func (mr *MockSwapClientServerMockRecorder) ListReservations(arg0, arg1 any) *gomock.Call
ListReservations indicates an expected call of ListReservations.
func (*MockSwapClientServerMockRecorder) ListSwaps ¶
func (mr *MockSwapClientServerMockRecorder) ListSwaps(arg0, arg1 any) *gomock.Call
ListSwaps indicates an expected call of ListSwaps.
func (*MockSwapClientServerMockRecorder) LoopIn ¶
func (mr *MockSwapClientServerMockRecorder) LoopIn(arg0, arg1 any) *gomock.Call
LoopIn indicates an expected call of LoopIn.
func (*MockSwapClientServerMockRecorder) LoopOut ¶
func (mr *MockSwapClientServerMockRecorder) LoopOut(arg0, arg1 any) *gomock.Call
LoopOut indicates an expected call of LoopOut.
func (*MockSwapClientServerMockRecorder) LoopOutQuote ¶
func (mr *MockSwapClientServerMockRecorder) LoopOutQuote(arg0, arg1 any) *gomock.Call
LoopOutQuote indicates an expected call of LoopOutQuote.
func (*MockSwapClientServerMockRecorder) LoopOutTerms ¶
func (mr *MockSwapClientServerMockRecorder) LoopOutTerms(arg0, arg1 any) *gomock.Call
LoopOutTerms indicates an expected call of LoopOutTerms.
func (*MockSwapClientServerMockRecorder) Monitor ¶
func (mr *MockSwapClientServerMockRecorder) Monitor(arg0, arg1 any) *gomock.Call
Monitor indicates an expected call of Monitor.
func (*MockSwapClientServerMockRecorder) Probe ¶
func (mr *MockSwapClientServerMockRecorder) Probe(arg0, arg1 any) *gomock.Call
Probe indicates an expected call of Probe.
func (*MockSwapClientServerMockRecorder) SetLiquidityParams ¶
func (mr *MockSwapClientServerMockRecorder) SetLiquidityParams(arg0, arg1 any) *gomock.Call
SetLiquidityParams indicates an expected call of SetLiquidityParams.
func (*MockSwapClientServerMockRecorder) SuggestSwaps ¶
func (mr *MockSwapClientServerMockRecorder) SuggestSwaps(arg0, arg1 any) *gomock.Call
SuggestSwaps indicates an expected call of SuggestSwaps.
type MockSwapClient_MonitorClient ¶
type MockSwapClient_MonitorClient struct {
// contains filtered or unexported fields
}
MockSwapClient_MonitorClient is a mock of SwapClient_MonitorClient interface.
func NewMockSwapClient_MonitorClient ¶
func NewMockSwapClient_MonitorClient(ctrl *gomock.Controller) *MockSwapClient_MonitorClient
NewMockSwapClient_MonitorClient creates a new mock instance.
func (*MockSwapClient_MonitorClient) CloseSend ¶
func (m *MockSwapClient_MonitorClient) CloseSend() error
CloseSend mocks base method.
func (*MockSwapClient_MonitorClient) Context ¶
func (m *MockSwapClient_MonitorClient) Context() context.Context
Context mocks base method.
func (*MockSwapClient_MonitorClient) EXPECT ¶
func (m *MockSwapClient_MonitorClient) EXPECT() *MockSwapClient_MonitorClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSwapClient_MonitorClient) Header ¶
func (m *MockSwapClient_MonitorClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockSwapClient_MonitorClient) Recv ¶
func (m *MockSwapClient_MonitorClient) Recv() (*looprpc.SwapStatus, error)
Recv mocks base method.
func (*MockSwapClient_MonitorClient) RecvMsg ¶
func (m_2 *MockSwapClient_MonitorClient) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockSwapClient_MonitorClient) SendMsg ¶
func (m_2 *MockSwapClient_MonitorClient) SendMsg(m any) error
SendMsg mocks base method.
func (*MockSwapClient_MonitorClient) Trailer ¶
func (m *MockSwapClient_MonitorClient) Trailer() metadata.MD
Trailer mocks base method.
type MockSwapClient_MonitorClientMockRecorder ¶
type MockSwapClient_MonitorClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSwapClient_MonitorClientMockRecorder is the mock recorder for MockSwapClient_MonitorClient.
func (*MockSwapClient_MonitorClientMockRecorder) CloseSend ¶
func (mr *MockSwapClient_MonitorClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockSwapClient_MonitorClientMockRecorder) Context ¶
func (mr *MockSwapClient_MonitorClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockSwapClient_MonitorClientMockRecorder) Header ¶
func (mr *MockSwapClient_MonitorClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockSwapClient_MonitorClientMockRecorder) Recv ¶
func (mr *MockSwapClient_MonitorClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockSwapClient_MonitorClientMockRecorder) RecvMsg ¶
func (mr *MockSwapClient_MonitorClientMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockSwapClient_MonitorClientMockRecorder) SendMsg ¶
func (mr *MockSwapClient_MonitorClientMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockSwapClient_MonitorClientMockRecorder) Trailer ¶
func (mr *MockSwapClient_MonitorClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockSwapClient_MonitorServer ¶
type MockSwapClient_MonitorServer struct {
// contains filtered or unexported fields
}
MockSwapClient_MonitorServer is a mock of SwapClient_MonitorServer interface.
func NewMockSwapClient_MonitorServer ¶
func NewMockSwapClient_MonitorServer(ctrl *gomock.Controller) *MockSwapClient_MonitorServer
NewMockSwapClient_MonitorServer creates a new mock instance.
func (*MockSwapClient_MonitorServer) Context ¶
func (m *MockSwapClient_MonitorServer) Context() context.Context
Context mocks base method.
func (*MockSwapClient_MonitorServer) EXPECT ¶
func (m *MockSwapClient_MonitorServer) EXPECT() *MockSwapClient_MonitorServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSwapClient_MonitorServer) RecvMsg ¶
func (m_2 *MockSwapClient_MonitorServer) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockSwapClient_MonitorServer) Send ¶
func (m *MockSwapClient_MonitorServer) Send(arg0 *looprpc.SwapStatus) error
Send mocks base method.
func (*MockSwapClient_MonitorServer) SendHeader ¶
func (m *MockSwapClient_MonitorServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockSwapClient_MonitorServer) SendMsg ¶
func (m_2 *MockSwapClient_MonitorServer) SendMsg(m any) error
SendMsg mocks base method.
func (*MockSwapClient_MonitorServer) SetHeader ¶
func (m *MockSwapClient_MonitorServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockSwapClient_MonitorServer) SetTrailer ¶
func (m *MockSwapClient_MonitorServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockSwapClient_MonitorServerMockRecorder ¶
type MockSwapClient_MonitorServerMockRecorder struct {
// contains filtered or unexported fields
}
MockSwapClient_MonitorServerMockRecorder is the mock recorder for MockSwapClient_MonitorServer.
func (*MockSwapClient_MonitorServerMockRecorder) Context ¶
func (mr *MockSwapClient_MonitorServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockSwapClient_MonitorServerMockRecorder) RecvMsg ¶
func (mr *MockSwapClient_MonitorServerMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockSwapClient_MonitorServerMockRecorder) Send ¶
func (mr *MockSwapClient_MonitorServerMockRecorder) Send(arg0 any) *gomock.Call
Send indicates an expected call of Send.
func (*MockSwapClient_MonitorServerMockRecorder) SendHeader ¶
func (mr *MockSwapClient_MonitorServerMockRecorder) SendHeader(arg0 any) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockSwapClient_MonitorServerMockRecorder) SendMsg ¶
func (mr *MockSwapClient_MonitorServerMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockSwapClient_MonitorServerMockRecorder) SetHeader ¶
func (mr *MockSwapClient_MonitorServerMockRecorder) SetHeader(arg0 any) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockSwapClient_MonitorServerMockRecorder) SetTrailer ¶
func (mr *MockSwapClient_MonitorServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type MockUnsafeSwapClientServer ¶
type MockUnsafeSwapClientServer struct {
// contains filtered or unexported fields
}
MockUnsafeSwapClientServer is a mock of UnsafeSwapClientServer interface.
func NewMockUnsafeSwapClientServer ¶
func NewMockUnsafeSwapClientServer(ctrl *gomock.Controller) *MockUnsafeSwapClientServer
NewMockUnsafeSwapClientServer creates a new mock instance.
func (*MockUnsafeSwapClientServer) EXPECT ¶
func (m *MockUnsafeSwapClientServer) EXPECT() *MockUnsafeSwapClientServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeSwapClientServerMockRecorder ¶
type MockUnsafeSwapClientServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeSwapClientServerMockRecorder is the mock recorder for MockUnsafeSwapClientServer.
type Provider ¶
type Provider interface { //Submarine Swap L1->L2 RequestSubmarineSwap(context.Context, SubmarineSwapRequest, looprpc.SwapClientClient) (SubmarineSwapResponse, error) //Reverse Submarine Swap L2->L1 RequestReverseSubmarineSwap(context.Context, ReverseSubmarineSwapRequest, looprpc.SwapClientClient) (ReverseSubmarineSwapResponse, error) //Swap info GetSwapStatus(context.Context, string, looprpc.SwapClientClient) (looprpc.SwapStatus, error) //Monitor Swap by waiting for it to complete or fail MonitorSwap(context.Context, string, looprpc.SwapClientClient) (looprpc.SwapStatus, error) }
type ReverseSubmarineSwapRequest ¶
type ReverseSubmarineSwapRequest struct { //L1 Address to receive L2 funds ReceiverBTCAddress string SatsAmount int64 ChannelSet []uint64 }
Provider-agnostic request for a reverse submarine swap
type ReverseSubmarineSwapResponse ¶
type ReverseSubmarineSwapResponse struct {
SwapId string
}
Provider-agnostic response for a reverse submarine swap
type SubmarineSwapRequest ¶
type SubmarineSwapRequest struct { SatsAmount int64 //Last hop node to identify which channel to use, if multiple channels are with this node then there is no way to know which one will be used LastHopPubkey string }
Provider-agnostic request for a submarine swap
type SubmarineSwapResponse ¶
type SubmarineSwapResponse struct { SwapId string //L1 address to send the funds to pay for the submarine swap InvoiceBTCAddress string }
Provider-agnostic response for a submarine swap