mock_paraswap

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_paraswap is a generated GoMock package.

Index

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

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

func (m *MockClientInterface) FetchTokensList(ctx context.Context) ([]paraswap.Token, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL