mockbind

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractBackend

type ContractBackend struct {
	mock.Mock
}

ContractBackend is an autogenerated mock type for the ContractBackend type

func NewContractBackend

func NewContractBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContractBackend

NewContractBackend creates a new instance of ContractBackend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ContractBackend) CallContract

func (_m *ContractBackend) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract provides a mock function with given fields: ctx, call, blockNumber

func (*ContractBackend) CodeAt

func (_m *ContractBackend) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt provides a mock function with given fields: ctx, contract, blockNumber

func (*ContractBackend) EXPECT

func (*ContractBackend) EstimateGas

func (_m *ContractBackend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

EstimateGas provides a mock function with given fields: ctx, call

func (*ContractBackend) FilterLogs

func (_m *ContractBackend) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)

FilterLogs provides a mock function with given fields: ctx, query

func (*ContractBackend) HeaderByNumber

func (_m *ContractBackend) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

func (*ContractBackend) PendingCodeAt

func (_m *ContractBackend) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

PendingCodeAt provides a mock function with given fields: ctx, account

func (*ContractBackend) PendingNonceAt

func (_m *ContractBackend) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

PendingNonceAt provides a mock function with given fields: ctx, account

func (*ContractBackend) SendTransaction

func (_m *ContractBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error

SendTransaction provides a mock function with given fields: ctx, tx

func (*ContractBackend) SubscribeFilterLogs

func (_m *ContractBackend) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

SubscribeFilterLogs provides a mock function with given fields: ctx, query, ch

func (*ContractBackend) SuggestGasPrice

func (_m *ContractBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice provides a mock function with given fields: ctx

func (*ContractBackend) SuggestGasTipCap

func (_m *ContractBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

SuggestGasTipCap provides a mock function with given fields: ctx

type ContractBackend_CallContract_Call

type ContractBackend_CallContract_Call struct {
	*mock.Call
}

ContractBackend_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'

func (*ContractBackend_CallContract_Call) Return

func (*ContractBackend_CallContract_Call) Run

func (*ContractBackend_CallContract_Call) RunAndReturn

type ContractBackend_CodeAt_Call

type ContractBackend_CodeAt_Call struct {
	*mock.Call
}

ContractBackend_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'

func (*ContractBackend_CodeAt_Call) Return

func (*ContractBackend_CodeAt_Call) Run

func (_c *ContractBackend_CodeAt_Call) Run(run func(ctx context.Context, contract common.Address, blockNumber *big.Int)) *ContractBackend_CodeAt_Call

func (*ContractBackend_CodeAt_Call) RunAndReturn

type ContractBackend_EstimateGas_Call

type ContractBackend_EstimateGas_Call struct {
	*mock.Call
}

ContractBackend_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'

func (*ContractBackend_EstimateGas_Call) Return

func (*ContractBackend_EstimateGas_Call) Run

func (*ContractBackend_EstimateGas_Call) RunAndReturn

type ContractBackend_Expecter

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

func (*ContractBackend_Expecter) CallContract

func (_e *ContractBackend_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *ContractBackend_CallContract_Call

CallContract is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg
  • blockNumber *big.Int

func (*ContractBackend_Expecter) CodeAt

func (_e *ContractBackend_Expecter) CodeAt(ctx interface{}, contract interface{}, blockNumber interface{}) *ContractBackend_CodeAt_Call

CodeAt is a helper method to define mock.On call

  • ctx context.Context
  • contract common.Address
  • blockNumber *big.Int

func (*ContractBackend_Expecter) EstimateGas

func (_e *ContractBackend_Expecter) EstimateGas(ctx interface{}, call interface{}) *ContractBackend_EstimateGas_Call

EstimateGas is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg

func (*ContractBackend_Expecter) FilterLogs

func (_e *ContractBackend_Expecter) FilterLogs(ctx interface{}, query interface{}) *ContractBackend_FilterLogs_Call

FilterLogs is a helper method to define mock.On call

  • ctx context.Context
  • query ethereum.FilterQuery

func (*ContractBackend_Expecter) HeaderByNumber

func (_e *ContractBackend_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *ContractBackend_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*ContractBackend_Expecter) PendingCodeAt

func (_e *ContractBackend_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *ContractBackend_PendingCodeAt_Call

PendingCodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*ContractBackend_Expecter) PendingNonceAt

func (_e *ContractBackend_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *ContractBackend_PendingNonceAt_Call

PendingNonceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*ContractBackend_Expecter) SendTransaction

func (_e *ContractBackend_Expecter) SendTransaction(ctx interface{}, tx interface{}) *ContractBackend_SendTransaction_Call

SendTransaction is a helper method to define mock.On call

  • ctx context.Context
  • tx *types.Transaction

func (*ContractBackend_Expecter) SubscribeFilterLogs

func (_e *ContractBackend_Expecter) SubscribeFilterLogs(ctx interface{}, query interface{}, ch interface{}) *ContractBackend_SubscribeFilterLogs_Call

SubscribeFilterLogs is a helper method to define mock.On call

  • ctx context.Context
  • query ethereum.FilterQuery
  • ch chan<- types.Log

func (*ContractBackend_Expecter) SuggestGasPrice

func (_e *ContractBackend_Expecter) SuggestGasPrice(ctx interface{}) *ContractBackend_SuggestGasPrice_Call

SuggestGasPrice is a helper method to define mock.On call

  • ctx context.Context

func (*ContractBackend_Expecter) SuggestGasTipCap

func (_e *ContractBackend_Expecter) SuggestGasTipCap(ctx interface{}) *ContractBackend_SuggestGasTipCap_Call

SuggestGasTipCap is a helper method to define mock.On call

  • ctx context.Context

type ContractBackend_FilterLogs_Call

type ContractBackend_FilterLogs_Call struct {
	*mock.Call
}

ContractBackend_FilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterLogs'

func (*ContractBackend_FilterLogs_Call) Return

func (*ContractBackend_FilterLogs_Call) Run

func (*ContractBackend_FilterLogs_Call) RunAndReturn

type ContractBackend_HeaderByNumber_Call

type ContractBackend_HeaderByNumber_Call struct {
	*mock.Call
}

ContractBackend_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'

func (*ContractBackend_HeaderByNumber_Call) Return

func (*ContractBackend_HeaderByNumber_Call) Run

func (*ContractBackend_HeaderByNumber_Call) RunAndReturn

type ContractBackend_PendingCodeAt_Call

type ContractBackend_PendingCodeAt_Call struct {
	*mock.Call
}

ContractBackend_PendingCodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingCodeAt'

func (*ContractBackend_PendingCodeAt_Call) Return

func (*ContractBackend_PendingCodeAt_Call) Run

func (*ContractBackend_PendingCodeAt_Call) RunAndReturn

type ContractBackend_PendingNonceAt_Call

type ContractBackend_PendingNonceAt_Call struct {
	*mock.Call
}

ContractBackend_PendingNonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingNonceAt'

func (*ContractBackend_PendingNonceAt_Call) Return

func (*ContractBackend_PendingNonceAt_Call) Run

func (*ContractBackend_PendingNonceAt_Call) RunAndReturn

type ContractBackend_SendTransaction_Call

type ContractBackend_SendTransaction_Call struct {
	*mock.Call
}

ContractBackend_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction'

func (*ContractBackend_SendTransaction_Call) Return

func (*ContractBackend_SendTransaction_Call) Run

func (*ContractBackend_SendTransaction_Call) RunAndReturn

type ContractBackend_SubscribeFilterLogs_Call

type ContractBackend_SubscribeFilterLogs_Call struct {
	*mock.Call
}

ContractBackend_SubscribeFilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeFilterLogs'

func (*ContractBackend_SubscribeFilterLogs_Call) Return

func (*ContractBackend_SubscribeFilterLogs_Call) Run

func (*ContractBackend_SubscribeFilterLogs_Call) RunAndReturn

type ContractBackend_SuggestGasPrice_Call

type ContractBackend_SuggestGasPrice_Call struct {
	*mock.Call
}

ContractBackend_SuggestGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasPrice'

func (*ContractBackend_SuggestGasPrice_Call) Return

func (*ContractBackend_SuggestGasPrice_Call) Run

func (*ContractBackend_SuggestGasPrice_Call) RunAndReturn

type ContractBackend_SuggestGasTipCap_Call

type ContractBackend_SuggestGasTipCap_Call struct {
	*mock.Call
}

ContractBackend_SuggestGasTipCap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasTipCap'

func (*ContractBackend_SuggestGasTipCap_Call) Return

func (*ContractBackend_SuggestGasTipCap_Call) Run

func (*ContractBackend_SuggestGasTipCap_Call) RunAndReturn

type DeployBackend

type DeployBackend struct {
	mock.Mock
}

DeployBackend is an autogenerated mock type for the DeployBackend type

func NewDeployBackend

func NewDeployBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *DeployBackend

NewDeployBackend creates a new instance of DeployBackend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DeployBackend) CodeAt

func (_m *DeployBackend) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt provides a mock function with given fields: ctx, account, blockNumber

func (*DeployBackend) EXPECT

func (_m *DeployBackend) EXPECT() *DeployBackend_Expecter

func (*DeployBackend) TransactionReceipt

func (_m *DeployBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

TransactionReceipt provides a mock function with given fields: ctx, txHash

type DeployBackend_CodeAt_Call

type DeployBackend_CodeAt_Call struct {
	*mock.Call
}

DeployBackend_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'

func (*DeployBackend_CodeAt_Call) Return

func (*DeployBackend_CodeAt_Call) Run

func (_c *DeployBackend_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *DeployBackend_CodeAt_Call

func (*DeployBackend_CodeAt_Call) RunAndReturn

type DeployBackend_Expecter

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

func (*DeployBackend_Expecter) CodeAt

func (_e *DeployBackend_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *DeployBackend_CodeAt_Call

CodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*DeployBackend_Expecter) TransactionReceipt

func (_e *DeployBackend_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *DeployBackend_TransactionReceipt_Call

TransactionReceipt is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

type DeployBackend_TransactionReceipt_Call

type DeployBackend_TransactionReceipt_Call struct {
	*mock.Call
}

DeployBackend_TransactionReceipt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionReceipt'

func (*DeployBackend_TransactionReceipt_Call) Return

func (*DeployBackend_TransactionReceipt_Call) Run

func (*DeployBackend_TransactionReceipt_Call) RunAndReturn

Jump to

Keyboard shortcuts

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