Documentation ¶
Overview ¶
Package mock_paraswap is a generated GoMock package.
Index ¶
- type MockClientInterface
- func (m *MockClientInterface) BuildTransaction(ctx context.Context, srcTokenAddress common.Address, srcTokenDecimals uint, ...) (paraswap.Transaction, error)
- func (m *MockClientInterface) EXPECT() *MockClientInterfaceMockRecorder
- func (m *MockClientInterface) FetchPriceRoute(ctx context.Context, srcTokenAddress common.Address, srcTokenDecimals uint, ...) (paraswap.Route, error)
- func (m *MockClientInterface) FetchTokensList(ctx context.Context) ([]paraswap.Token, error)
- func (m *MockClientInterface) SetChainID(chainID uint64)
- func (m *MockClientInterface) SetPartnerAddress(partnerAddress common.Address)
- func (m *MockClientInterface) SetPartnerFeePcnt(partnerFeePcnt float64)
- type MockClientInterfaceMockRecorder
- func (mr *MockClientInterfaceMockRecorder) BuildTransaction(...) *gomock.Call
- func (mr *MockClientInterfaceMockRecorder) FetchPriceRoute(...) *gomock.Call
- func (mr *MockClientInterfaceMockRecorder) FetchTokensList(ctx interface{}) *gomock.Call
- func (mr *MockClientInterfaceMockRecorder) SetChainID(chainID interface{}) *gomock.Call
- func (mr *MockClientInterfaceMockRecorder) SetPartnerAddress(partnerAddress interface{}) *gomock.Call
- func (mr *MockClientInterfaceMockRecorder) SetPartnerFeePcnt(partnerFeePcnt interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClientInterface ¶
type MockClientInterface struct {
// contains filtered or unexported fields
}
MockClientInterface is a mock of ClientInterface interface.
func NewMockClientInterface ¶
func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface
NewMockClientInterface creates a new mock instance.
func (*MockClientInterface) BuildTransaction ¶
func (m *MockClientInterface) BuildTransaction(ctx context.Context, srcTokenAddress common.Address, srcTokenDecimals uint, srcAmountWei *big.Int, destTokenAddress common.Address, destTokenDecimals uint, destAmountWei *big.Int, slippageBasisPoints uint, addressFrom, addressTo common.Address, priceRoute json.RawMessage, side paraswap.SwapSide) (paraswap.Transaction, error)
BuildTransaction mocks base method.
func (*MockClientInterface) EXPECT ¶
func (m *MockClientInterface) EXPECT() *MockClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientInterface) FetchPriceRoute ¶
func (m *MockClientInterface) FetchPriceRoute(ctx context.Context, srcTokenAddress common.Address, srcTokenDecimals uint, destTokenAddress common.Address, destTokenDecimals uint, amountWei *big.Int, addressFrom, addressTo common.Address, side paraswap.SwapSide) (paraswap.Route, error)
FetchPriceRoute mocks base method.
func (*MockClientInterface) FetchTokensList ¶
FetchTokensList mocks base method.
func (*MockClientInterface) SetChainID ¶
func (m *MockClientInterface) SetChainID(chainID uint64)
SetChainID mocks base method.
func (*MockClientInterface) SetPartnerAddress ¶
func (m *MockClientInterface) SetPartnerAddress(partnerAddress common.Address)
SetPartnerAddress mocks base method.
func (*MockClientInterface) SetPartnerFeePcnt ¶
func (m *MockClientInterface) SetPartnerFeePcnt(partnerFeePcnt float64)
SetPartnerFeePcnt mocks base method.
type MockClientInterfaceMockRecorder ¶
type MockClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface.
func (*MockClientInterfaceMockRecorder) BuildTransaction ¶
func (mr *MockClientInterfaceMockRecorder) BuildTransaction(ctx, srcTokenAddress, srcTokenDecimals, srcAmountWei, destTokenAddress, destTokenDecimals, destAmountWei, slippageBasisPoints, addressFrom, addressTo, priceRoute, side interface{}) *gomock.Call
BuildTransaction indicates an expected call of BuildTransaction.
func (*MockClientInterfaceMockRecorder) FetchPriceRoute ¶
func (mr *MockClientInterfaceMockRecorder) FetchPriceRoute(ctx, srcTokenAddress, srcTokenDecimals, destTokenAddress, destTokenDecimals, amountWei, addressFrom, addressTo, side interface{}) *gomock.Call
FetchPriceRoute indicates an expected call of FetchPriceRoute.
func (*MockClientInterfaceMockRecorder) FetchTokensList ¶
func (mr *MockClientInterfaceMockRecorder) FetchTokensList(ctx interface{}) *gomock.Call
FetchTokensList indicates an expected call of FetchTokensList.
func (*MockClientInterfaceMockRecorder) SetChainID ¶
func (mr *MockClientInterfaceMockRecorder) SetChainID(chainID interface{}) *gomock.Call
SetChainID indicates an expected call of SetChainID.
func (*MockClientInterfaceMockRecorder) SetPartnerAddress ¶
func (mr *MockClientInterfaceMockRecorder) SetPartnerAddress(partnerAddress interface{}) *gomock.Call
SetPartnerAddress indicates an expected call of SetPartnerAddress.
func (*MockClientInterfaceMockRecorder) SetPartnerFeePcnt ¶
func (mr *MockClientInterfaceMockRecorder) SetPartnerFeePcnt(partnerFeePcnt interface{}) *gomock.Call
SetPartnerFeePcnt indicates an expected call of SetPartnerFeePcnt.