mock_bridge

package
v0.179.27 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

To generate mocks, from status-go root directory:

mockgen -source=services/wallet/bridge/bridge.go -destination=services/wallet/bridge/mock_bridge/bridge.go -package=mock_bridge

Documentation

Overview

Package mock_bridge is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBridge

type MockBridge struct {
	// contains filtered or unexported fields
}

MockBridge is a mock of Bridge interface.

func NewMockBridge

func NewMockBridge(ctrl *gomock.Controller) *MockBridge

NewMockBridge creates a new mock instance.

func (*MockBridge) AvailableFor

func (m *MockBridge) AvailableFor(from, to *params.Network, token, toToken *token.Token) (bool, error)

AvailableFor mocks base method.

func (*MockBridge) BuildTransaction

func (m *MockBridge) BuildTransaction(sendArgs *bridge.TransactionBridge) (*types.Transaction, error)

BuildTransaction mocks base method.

func (*MockBridge) BuildTx

func (m *MockBridge) BuildTx(fromNetwork, toNetwork *params.Network, fromAddress, toAddress common.Address, token *token.Token, amountIn, bonderFee *big.Int) (*types.Transaction, error)

BuildTx mocks base method.

func (*MockBridge) CalculateAmountOut

func (m *MockBridge) CalculateAmountOut(from, to *params.Network, amountIn *big.Int, symbol string) (*big.Int, error)

CalculateAmountOut mocks base method.

func (*MockBridge) CalculateFees

func (m *MockBridge) CalculateFees(from, to *params.Network, token *token.Token, amountIn *big.Int) (*big.Int, *big.Int, error)

CalculateFees mocks base method.

func (*MockBridge) EXPECT

func (m *MockBridge) EXPECT() *MockBridgeMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBridge) EstimateGas

func (m *MockBridge) EstimateGas(fromNetwork, toNetwork *params.Network, from, to common.Address, token, toToken *token.Token, amountIn *big.Int) (uint64, error)

EstimateGas mocks base method.

func (*MockBridge) GetContractAddress

func (m *MockBridge) GetContractAddress(network *params.Network, token *token.Token) (common.Address, error)

GetContractAddress mocks base method.

func (*MockBridge) Name

func (m *MockBridge) Name() string

Name mocks base method.

func (*MockBridge) PackTxInputData

func (m *MockBridge) PackTxInputData(contractType string, fromNetwork, toNetwork *params.Network, from, to common.Address, token *token.Token, amountIn *big.Int) ([]byte, error)

PackTxInputData mocks base method.

func (*MockBridge) Send

func (m *MockBridge) Send(sendArgs *bridge.TransactionBridge, verifiedAccount *account.SelectedExtKey) (types0.Hash, error)

Send mocks base method.

type MockBridgeMockRecorder

type MockBridgeMockRecorder struct {
	// contains filtered or unexported fields
}

MockBridgeMockRecorder is the mock recorder for MockBridge.

func (*MockBridgeMockRecorder) AvailableFor

func (mr *MockBridgeMockRecorder) AvailableFor(from, to, token, toToken interface{}) *gomock.Call

AvailableFor indicates an expected call of AvailableFor.

func (*MockBridgeMockRecorder) BuildTransaction

func (mr *MockBridgeMockRecorder) BuildTransaction(sendArgs interface{}) *gomock.Call

BuildTransaction indicates an expected call of BuildTransaction.

func (*MockBridgeMockRecorder) BuildTx

func (mr *MockBridgeMockRecorder) BuildTx(fromNetwork, toNetwork, fromAddress, toAddress, token, amountIn, bonderFee interface{}) *gomock.Call

BuildTx indicates an expected call of BuildTx.

func (*MockBridgeMockRecorder) CalculateAmountOut

func (mr *MockBridgeMockRecorder) CalculateAmountOut(from, to, amountIn, symbol interface{}) *gomock.Call

CalculateAmountOut indicates an expected call of CalculateAmountOut.

func (*MockBridgeMockRecorder) CalculateFees

func (mr *MockBridgeMockRecorder) CalculateFees(from, to, token, amountIn interface{}) *gomock.Call

CalculateFees indicates an expected call of CalculateFees.

func (*MockBridgeMockRecorder) EstimateGas

func (mr *MockBridgeMockRecorder) EstimateGas(fromNetwork, toNetwork, from, to, token, toToken, amountIn interface{}) *gomock.Call

EstimateGas indicates an expected call of EstimateGas.

func (*MockBridgeMockRecorder) GetContractAddress

func (mr *MockBridgeMockRecorder) GetContractAddress(network, token interface{}) *gomock.Call

GetContractAddress indicates an expected call of GetContractAddress.

func (*MockBridgeMockRecorder) Name

func (mr *MockBridgeMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockBridgeMockRecorder) PackTxInputData

func (mr *MockBridgeMockRecorder) PackTxInputData(contractType, fromNetwork, toNetwork, from, to, token, amountIn interface{}) *gomock.Call

PackTxInputData indicates an expected call of PackTxInputData.

func (*MockBridgeMockRecorder) Send

func (mr *MockBridgeMockRecorder) Send(sendArgs, verifiedAccount interface{}) *gomock.Call

Send indicates an expected call of Send.

Jump to

Keyboard shortcuts

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