mocks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthermanInterface

type EthermanInterface struct {
	mock.Mock
}

EthermanInterface is an autogenerated mock type for the EthermanInterface type

func NewEthermanInterface

func NewEthermanInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthermanInterface

NewEthermanInterface creates a new instance of EthermanInterface. 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 (*EthermanInterface) CheckTxWasMined

func (_m *EthermanInterface) CheckTxWasMined(ctx context.Context, txHash common.Hash) (bool, *types.Receipt, error)

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

func (*EthermanInterface) CurrentNonce

func (_m *EthermanInterface) CurrentNonce(ctx context.Context, account common.Address) (uint64, error)

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

func (*EthermanInterface) EXPECT

func (*EthermanInterface) EstimateGas

func (_m *EthermanInterface) EstimateGas(ctx context.Context, from common.Address, to *common.Address, value *big.Int, data []byte) (uint64, error)

EstimateGas provides a mock function with given fields: ctx, from, to, value, data

func (*EthermanInterface) EstimateGasBlobTx

func (_m *EthermanInterface) EstimateGasBlobTx(ctx context.Context, from common.Address, to *common.Address, gasFeeCap *big.Int, gasTipCap *big.Int, value *big.Int, data []byte) (uint64, error)

EstimateGasBlobTx provides a mock function with given fields: ctx, from, to, gasFeeCap, gasTipCap, value, data

func (*EthermanInterface) GetHeaderByNumber

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

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

func (*EthermanInterface) GetLatestBlockNumber

func (_m *EthermanInterface) GetLatestBlockNumber(ctx context.Context) (uint64, error)

GetLatestBlockNumber provides a mock function with given fields: ctx

func (*EthermanInterface) GetRevertMessage

func (_m *EthermanInterface) GetRevertMessage(ctx context.Context, tx *types.Transaction) (string, error)

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

func (*EthermanInterface) GetSuggestGasTipCap

func (_m *EthermanInterface) GetSuggestGasTipCap(ctx context.Context) (*big.Int, error)

GetSuggestGasTipCap provides a mock function with given fields: ctx

func (*EthermanInterface) GetTx

func (_m *EthermanInterface) GetTx(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)

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

func (*EthermanInterface) GetTxReceipt

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

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

func (*EthermanInterface) HeaderByNumber

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

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

func (*EthermanInterface) PendingNonce

func (_m *EthermanInterface) PendingNonce(ctx context.Context, account common.Address) (uint64, error)

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

func (*EthermanInterface) SendTx

func (_m *EthermanInterface) SendTx(ctx context.Context, tx *types.Transaction) error

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

func (*EthermanInterface) SignTx

SignTx provides a mock function with given fields: ctx, sender, tx

func (*EthermanInterface) SuggestedGasPrice

func (_m *EthermanInterface) SuggestedGasPrice(ctx context.Context) (*big.Int, error)

SuggestedGasPrice provides a mock function with given fields: ctx

func (*EthermanInterface) WaitTxToBeMined

func (_m *EthermanInterface) WaitTxToBeMined(ctx context.Context, tx *types.Transaction, timeout time.Duration) (bool, error)

WaitTxToBeMined provides a mock function with given fields: ctx, tx, timeout

type EthermanInterface_CheckTxWasMined_Call

type EthermanInterface_CheckTxWasMined_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_CheckTxWasMined_Call) Return

func (*EthermanInterface_CheckTxWasMined_Call) Run

func (*EthermanInterface_CheckTxWasMined_Call) RunAndReturn

type EthermanInterface_CurrentNonce_Call

type EthermanInterface_CurrentNonce_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_CurrentNonce_Call) Return

func (*EthermanInterface_CurrentNonce_Call) Run

func (*EthermanInterface_CurrentNonce_Call) RunAndReturn

type EthermanInterface_EstimateGasBlobTx_Call

type EthermanInterface_EstimateGasBlobTx_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_EstimateGasBlobTx_Call) Return

func (*EthermanInterface_EstimateGasBlobTx_Call) Run

func (_c *EthermanInterface_EstimateGasBlobTx_Call) Run(run func(ctx context.Context, from common.Address, to *common.Address, gasFeeCap *big.Int, gasTipCap *big.Int, value *big.Int, data []byte)) *EthermanInterface_EstimateGasBlobTx_Call

func (*EthermanInterface_EstimateGasBlobTx_Call) RunAndReturn

type EthermanInterface_EstimateGas_Call

type EthermanInterface_EstimateGas_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_EstimateGas_Call) Return

func (*EthermanInterface_EstimateGas_Call) Run

func (*EthermanInterface_EstimateGas_Call) RunAndReturn

type EthermanInterface_Expecter

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

func (*EthermanInterface_Expecter) CheckTxWasMined

func (_e *EthermanInterface_Expecter) CheckTxWasMined(ctx interface{}, txHash interface{}) *EthermanInterface_CheckTxWasMined_Call

CheckTxWasMined is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*EthermanInterface_Expecter) CurrentNonce

func (_e *EthermanInterface_Expecter) CurrentNonce(ctx interface{}, account interface{}) *EthermanInterface_CurrentNonce_Call

CurrentNonce is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthermanInterface_Expecter) EstimateGas

func (_e *EthermanInterface_Expecter) EstimateGas(ctx interface{}, from interface{}, to interface{}, value interface{}, data interface{}) *EthermanInterface_EstimateGas_Call

EstimateGas is a helper method to define mock.On call

  • ctx context.Context
  • from common.Address
  • to *common.Address
  • value *big.Int
  • data []byte

func (*EthermanInterface_Expecter) EstimateGasBlobTx

func (_e *EthermanInterface_Expecter) EstimateGasBlobTx(ctx interface{}, from interface{}, to interface{}, gasFeeCap interface{}, gasTipCap interface{}, value interface{}, data interface{}) *EthermanInterface_EstimateGasBlobTx_Call

EstimateGasBlobTx is a helper method to define mock.On call

  • ctx context.Context
  • from common.Address
  • to *common.Address
  • gasFeeCap *big.Int
  • gasTipCap *big.Int
  • value *big.Int
  • data []byte

func (*EthermanInterface_Expecter) GetHeaderByNumber

func (_e *EthermanInterface_Expecter) GetHeaderByNumber(ctx interface{}, number interface{}) *EthermanInterface_GetHeaderByNumber_Call

GetHeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*EthermanInterface_Expecter) GetLatestBlockNumber

func (_e *EthermanInterface_Expecter) GetLatestBlockNumber(ctx interface{}) *EthermanInterface_GetLatestBlockNumber_Call

GetLatestBlockNumber is a helper method to define mock.On call

  • ctx context.Context

func (*EthermanInterface_Expecter) GetRevertMessage

func (_e *EthermanInterface_Expecter) GetRevertMessage(ctx interface{}, tx interface{}) *EthermanInterface_GetRevertMessage_Call

GetRevertMessage is a helper method to define mock.On call

  • ctx context.Context
  • tx *types.Transaction

func (*EthermanInterface_Expecter) GetSuggestGasTipCap

func (_e *EthermanInterface_Expecter) GetSuggestGasTipCap(ctx interface{}) *EthermanInterface_GetSuggestGasTipCap_Call

GetSuggestGasTipCap is a helper method to define mock.On call

  • ctx context.Context

func (*EthermanInterface_Expecter) GetTx

func (_e *EthermanInterface_Expecter) GetTx(ctx interface{}, txHash interface{}) *EthermanInterface_GetTx_Call

GetTx is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*EthermanInterface_Expecter) GetTxReceipt

func (_e *EthermanInterface_Expecter) GetTxReceipt(ctx interface{}, txHash interface{}) *EthermanInterface_GetTxReceipt_Call

GetTxReceipt is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*EthermanInterface_Expecter) HeaderByNumber

func (_e *EthermanInterface_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthermanInterface_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*EthermanInterface_Expecter) PendingNonce

func (_e *EthermanInterface_Expecter) PendingNonce(ctx interface{}, account interface{}) *EthermanInterface_PendingNonce_Call

PendingNonce is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthermanInterface_Expecter) SendTx

func (_e *EthermanInterface_Expecter) SendTx(ctx interface{}, tx interface{}) *EthermanInterface_SendTx_Call

SendTx is a helper method to define mock.On call

  • ctx context.Context
  • tx *types.Transaction

func (*EthermanInterface_Expecter) SignTx

func (_e *EthermanInterface_Expecter) SignTx(ctx interface{}, sender interface{}, tx interface{}) *EthermanInterface_SignTx_Call

SignTx is a helper method to define mock.On call

  • ctx context.Context
  • sender common.Address
  • tx *types.Transaction

func (*EthermanInterface_Expecter) SuggestedGasPrice

func (_e *EthermanInterface_Expecter) SuggestedGasPrice(ctx interface{}) *EthermanInterface_SuggestedGasPrice_Call

SuggestedGasPrice is a helper method to define mock.On call

  • ctx context.Context

func (*EthermanInterface_Expecter) WaitTxToBeMined

func (_e *EthermanInterface_Expecter) WaitTxToBeMined(ctx interface{}, tx interface{}, timeout interface{}) *EthermanInterface_WaitTxToBeMined_Call

WaitTxToBeMined is a helper method to define mock.On call

  • ctx context.Context
  • tx *types.Transaction
  • timeout time.Duration

type EthermanInterface_GetHeaderByNumber_Call

type EthermanInterface_GetHeaderByNumber_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_GetHeaderByNumber_Call) Return

func (*EthermanInterface_GetHeaderByNumber_Call) Run

func (*EthermanInterface_GetHeaderByNumber_Call) RunAndReturn

type EthermanInterface_GetLatestBlockNumber_Call

type EthermanInterface_GetLatestBlockNumber_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_GetLatestBlockNumber_Call) Return

func (*EthermanInterface_GetLatestBlockNumber_Call) Run

func (*EthermanInterface_GetLatestBlockNumber_Call) RunAndReturn

type EthermanInterface_GetRevertMessage_Call

type EthermanInterface_GetRevertMessage_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_GetRevertMessage_Call) Return

func (*EthermanInterface_GetRevertMessage_Call) Run

func (*EthermanInterface_GetRevertMessage_Call) RunAndReturn

type EthermanInterface_GetSuggestGasTipCap_Call

type EthermanInterface_GetSuggestGasTipCap_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_GetSuggestGasTipCap_Call) Return

func (*EthermanInterface_GetSuggestGasTipCap_Call) Run

func (*EthermanInterface_GetSuggestGasTipCap_Call) RunAndReturn

type EthermanInterface_GetTxReceipt_Call

type EthermanInterface_GetTxReceipt_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_GetTxReceipt_Call) Return

func (*EthermanInterface_GetTxReceipt_Call) Run

func (*EthermanInterface_GetTxReceipt_Call) RunAndReturn

type EthermanInterface_GetTx_Call

type EthermanInterface_GetTx_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_GetTx_Call) Return

func (*EthermanInterface_GetTx_Call) Run

func (*EthermanInterface_GetTx_Call) RunAndReturn

type EthermanInterface_HeaderByNumber_Call

type EthermanInterface_HeaderByNumber_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_HeaderByNumber_Call) Return

func (*EthermanInterface_HeaderByNumber_Call) Run

func (*EthermanInterface_HeaderByNumber_Call) RunAndReturn

type EthermanInterface_PendingNonce_Call

type EthermanInterface_PendingNonce_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_PendingNonce_Call) Return

func (*EthermanInterface_PendingNonce_Call) Run

func (*EthermanInterface_PendingNonce_Call) RunAndReturn

type EthermanInterface_SendTx_Call

type EthermanInterface_SendTx_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_SendTx_Call) Return

func (*EthermanInterface_SendTx_Call) Run

func (*EthermanInterface_SendTx_Call) RunAndReturn

type EthermanInterface_SignTx_Call

type EthermanInterface_SignTx_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_SignTx_Call) Return

func (*EthermanInterface_SignTx_Call) Run

func (*EthermanInterface_SignTx_Call) RunAndReturn

type EthermanInterface_SuggestedGasPrice_Call

type EthermanInterface_SuggestedGasPrice_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_SuggestedGasPrice_Call) Return

func (*EthermanInterface_SuggestedGasPrice_Call) Run

func (*EthermanInterface_SuggestedGasPrice_Call) RunAndReturn

type EthermanInterface_WaitTxToBeMined_Call

type EthermanInterface_WaitTxToBeMined_Call struct {
	*mock.Call
}

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

func (*EthermanInterface_WaitTxToBeMined_Call) Return

func (*EthermanInterface_WaitTxToBeMined_Call) Run

func (*EthermanInterface_WaitTxToBeMined_Call) RunAndReturn

Jump to

Keyboard shortcuts

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