mocks

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: LGPL-3.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvmEstimator

type EvmEstimator struct {
	mock.Mock
}

EvmEstimator is an autogenerated mock type for the EvmEstimator type

func NewEvmEstimator

func NewEvmEstimator(t interface {
	mock.TestingT
	Cleanup(func())
}) *EvmEstimator

NewEvmEstimator creates a new instance of EvmEstimator. 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 (*EvmEstimator) BumpDynamicFee

func (_m *EvmEstimator) BumpDynamicFee(ctx context.Context, original gas.DynamicFee, maxGasPriceWei *assets.Wei, attempts []gas.EvmPriorAttempt) (gas.DynamicFee, error)

BumpDynamicFee provides a mock function with given fields: ctx, original, maxGasPriceWei, attempts

func (*EvmEstimator) BumpLegacyGas

func (_m *EvmEstimator) BumpLegacyGas(ctx context.Context, originalGasPrice *assets.Wei, gasLimit uint64, maxGasPriceWei *assets.Wei, attempts []gas.EvmPriorAttempt) (*assets.Wei, uint64, error)

BumpLegacyGas provides a mock function with given fields: ctx, originalGasPrice, gasLimit, maxGasPriceWei, attempts

func (*EvmEstimator) Close

func (_m *EvmEstimator) Close() error

Close provides a mock function with no fields

func (*EvmEstimator) EXPECT

func (_m *EvmEstimator) EXPECT() *EvmEstimator_Expecter

func (*EvmEstimator) GetDynamicFee

func (_m *EvmEstimator) GetDynamicFee(ctx context.Context, maxGasPriceWei *assets.Wei) (gas.DynamicFee, error)

GetDynamicFee provides a mock function with given fields: ctx, maxGasPriceWei

func (*EvmEstimator) GetLegacyGas

func (_m *EvmEstimator) GetLegacyGas(ctx context.Context, calldata []byte, gasLimit uint64, maxGasPriceWei *assets.Wei, opts ...fees.Opt) (*assets.Wei, uint64, error)

GetLegacyGas provides a mock function with given fields: ctx, calldata, gasLimit, maxGasPriceWei, opts

func (*EvmEstimator) HealthReport

func (_m *EvmEstimator) HealthReport() map[string]error

HealthReport provides a mock function with no fields

func (*EvmEstimator) L1Oracle

func (_m *EvmEstimator) L1Oracle() rollups.L1Oracle

L1Oracle provides a mock function with no fields

func (*EvmEstimator) Name

func (_m *EvmEstimator) Name() string

Name provides a mock function with no fields

func (*EvmEstimator) OnNewLongestChain

func (_m *EvmEstimator) OnNewLongestChain(ctx context.Context, head *types.Head)

OnNewLongestChain provides a mock function with given fields: ctx, head

func (*EvmEstimator) Ready

func (_m *EvmEstimator) Ready() error

Ready provides a mock function with no fields

func (*EvmEstimator) Start

func (_m *EvmEstimator) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type EvmEstimator_BumpDynamicFee_Call

type EvmEstimator_BumpDynamicFee_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_BumpDynamicFee_Call) Return

func (*EvmEstimator_BumpDynamicFee_Call) Run

func (_c *EvmEstimator_BumpDynamicFee_Call) Run(run func(ctx context.Context, original gas.DynamicFee, maxGasPriceWei *assets.Wei, attempts []gas.EvmPriorAttempt)) *EvmEstimator_BumpDynamicFee_Call

func (*EvmEstimator_BumpDynamicFee_Call) RunAndReturn

type EvmEstimator_BumpLegacyGas_Call

type EvmEstimator_BumpLegacyGas_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_BumpLegacyGas_Call) Return

func (_c *EvmEstimator_BumpLegacyGas_Call) Return(bumpedGasPrice *assets.Wei, chainSpecificGasLimit uint64, err error) *EvmEstimator_BumpLegacyGas_Call

func (*EvmEstimator_BumpLegacyGas_Call) Run

func (_c *EvmEstimator_BumpLegacyGas_Call) Run(run func(ctx context.Context, originalGasPrice *assets.Wei, gasLimit uint64, maxGasPriceWei *assets.Wei, attempts []gas.EvmPriorAttempt)) *EvmEstimator_BumpLegacyGas_Call

func (*EvmEstimator_BumpLegacyGas_Call) RunAndReturn

type EvmEstimator_Close_Call

type EvmEstimator_Close_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_Close_Call) Return

func (*EvmEstimator_Close_Call) Run

func (_c *EvmEstimator_Close_Call) Run(run func()) *EvmEstimator_Close_Call

func (*EvmEstimator_Close_Call) RunAndReturn

func (_c *EvmEstimator_Close_Call) RunAndReturn(run func() error) *EvmEstimator_Close_Call

type EvmEstimator_Expecter

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

func (*EvmEstimator_Expecter) BumpDynamicFee

func (_e *EvmEstimator_Expecter) BumpDynamicFee(ctx interface{}, original interface{}, maxGasPriceWei interface{}, attempts interface{}) *EvmEstimator_BumpDynamicFee_Call

BumpDynamicFee is a helper method to define mock.On call

  • ctx context.Context
  • original gas.DynamicFee
  • maxGasPriceWei *assets.Wei
  • attempts []gas.EvmPriorAttempt

func (*EvmEstimator_Expecter) BumpLegacyGas

func (_e *EvmEstimator_Expecter) BumpLegacyGas(ctx interface{}, originalGasPrice interface{}, gasLimit interface{}, maxGasPriceWei interface{}, attempts interface{}) *EvmEstimator_BumpLegacyGas_Call

BumpLegacyGas is a helper method to define mock.On call

  • ctx context.Context
  • originalGasPrice *assets.Wei
  • gasLimit uint64
  • maxGasPriceWei *assets.Wei
  • attempts []gas.EvmPriorAttempt

func (*EvmEstimator_Expecter) Close

Close is a helper method to define mock.On call

func (*EvmEstimator_Expecter) GetDynamicFee

func (_e *EvmEstimator_Expecter) GetDynamicFee(ctx interface{}, maxGasPriceWei interface{}) *EvmEstimator_GetDynamicFee_Call

GetDynamicFee is a helper method to define mock.On call

  • ctx context.Context
  • maxGasPriceWei *assets.Wei

func (*EvmEstimator_Expecter) GetLegacyGas

func (_e *EvmEstimator_Expecter) GetLegacyGas(ctx interface{}, calldata interface{}, gasLimit interface{}, maxGasPriceWei interface{}, opts ...interface{}) *EvmEstimator_GetLegacyGas_Call

GetLegacyGas is a helper method to define mock.On call

  • ctx context.Context
  • calldata []byte
  • gasLimit uint64
  • maxGasPriceWei *assets.Wei
  • opts ...fees.Opt

func (*EvmEstimator_Expecter) HealthReport

HealthReport is a helper method to define mock.On call

func (*EvmEstimator_Expecter) L1Oracle

L1Oracle is a helper method to define mock.On call

func (*EvmEstimator_Expecter) Name

Name is a helper method to define mock.On call

func (*EvmEstimator_Expecter) OnNewLongestChain

func (_e *EvmEstimator_Expecter) OnNewLongestChain(ctx interface{}, head interface{}) *EvmEstimator_OnNewLongestChain_Call

OnNewLongestChain is a helper method to define mock.On call

  • ctx context.Context
  • head *types.Head

func (*EvmEstimator_Expecter) Ready

Ready is a helper method to define mock.On call

func (*EvmEstimator_Expecter) Start

func (_e *EvmEstimator_Expecter) Start(_a0 interface{}) *EvmEstimator_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

type EvmEstimator_GetDynamicFee_Call

type EvmEstimator_GetDynamicFee_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_GetDynamicFee_Call) Return

func (*EvmEstimator_GetDynamicFee_Call) Run

func (*EvmEstimator_GetDynamicFee_Call) RunAndReturn

type EvmEstimator_GetLegacyGas_Call

type EvmEstimator_GetLegacyGas_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_GetLegacyGas_Call) Return

func (_c *EvmEstimator_GetLegacyGas_Call) Return(gasPrice *assets.Wei, chainSpecificGasLimit uint64, err error) *EvmEstimator_GetLegacyGas_Call

func (*EvmEstimator_GetLegacyGas_Call) Run

func (_c *EvmEstimator_GetLegacyGas_Call) Run(run func(ctx context.Context, calldata []byte, gasLimit uint64, maxGasPriceWei *assets.Wei, opts ...fees.Opt)) *EvmEstimator_GetLegacyGas_Call

func (*EvmEstimator_GetLegacyGas_Call) RunAndReturn

type EvmEstimator_HealthReport_Call

type EvmEstimator_HealthReport_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_HealthReport_Call) Return

func (*EvmEstimator_HealthReport_Call) Run

func (*EvmEstimator_HealthReport_Call) RunAndReturn

type EvmEstimator_L1Oracle_Call

type EvmEstimator_L1Oracle_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_L1Oracle_Call) Return

func (*EvmEstimator_L1Oracle_Call) Run

func (*EvmEstimator_L1Oracle_Call) RunAndReturn

type EvmEstimator_Name_Call

type EvmEstimator_Name_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_Name_Call) Return

func (*EvmEstimator_Name_Call) Run

func (_c *EvmEstimator_Name_Call) Run(run func()) *EvmEstimator_Name_Call

func (*EvmEstimator_Name_Call) RunAndReturn

func (_c *EvmEstimator_Name_Call) RunAndReturn(run func() string) *EvmEstimator_Name_Call

type EvmEstimator_OnNewLongestChain_Call

type EvmEstimator_OnNewLongestChain_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_OnNewLongestChain_Call) Return

func (*EvmEstimator_OnNewLongestChain_Call) Run

func (*EvmEstimator_OnNewLongestChain_Call) RunAndReturn

type EvmEstimator_Ready_Call

type EvmEstimator_Ready_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_Ready_Call) Return

func (*EvmEstimator_Ready_Call) Run

func (_c *EvmEstimator_Ready_Call) Run(run func()) *EvmEstimator_Ready_Call

func (*EvmEstimator_Ready_Call) RunAndReturn

func (_c *EvmEstimator_Ready_Call) RunAndReturn(run func() error) *EvmEstimator_Ready_Call

type EvmEstimator_Start_Call

type EvmEstimator_Start_Call struct {
	*mock.Call
}

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

func (*EvmEstimator_Start_Call) Return

func (*EvmEstimator_Start_Call) Run

func (*EvmEstimator_Start_Call) RunAndReturn

type EvmFeeEstimator

type EvmFeeEstimator struct {
	mock.Mock
}

EvmFeeEstimator is an autogenerated mock type for the EvmFeeEstimator type

func NewEvmFeeEstimator

func NewEvmFeeEstimator(t interface {
	mock.TestingT
	Cleanup(func())
}) *EvmFeeEstimator

NewEvmFeeEstimator creates a new instance of EvmFeeEstimator. 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 (*EvmFeeEstimator) BumpFee

func (_m *EvmFeeEstimator) BumpFee(ctx context.Context, originalFee gas.EvmFee, feeLimit uint64, maxFeePrice *assets.Wei, attempts []gas.EvmPriorAttempt) (gas.EvmFee, uint64, error)

BumpFee provides a mock function with given fields: ctx, originalFee, feeLimit, maxFeePrice, attempts

func (*EvmFeeEstimator) Close

func (_m *EvmFeeEstimator) Close() error

Close provides a mock function with no fields

func (*EvmFeeEstimator) EXPECT

func (*EvmFeeEstimator) GetFee

func (_m *EvmFeeEstimator) GetFee(ctx context.Context, calldata []byte, feeLimit uint64, maxFeePrice *assets.Wei, fromAddress *common.Address, toAddress *common.Address, opts ...fees.Opt) (gas.EvmFee, uint64, error)

GetFee provides a mock function with given fields: ctx, calldata, feeLimit, maxFeePrice, fromAddress, toAddress, opts

func (*EvmFeeEstimator) GetMaxCost

func (_m *EvmFeeEstimator) GetMaxCost(ctx context.Context, amount assets.Eth, calldata []byte, feeLimit uint64, maxFeePrice *assets.Wei, fromAddress *common.Address, toAddress *common.Address, opts ...fees.Opt) (*big.Int, error)

GetMaxCost provides a mock function with given fields: ctx, amount, calldata, feeLimit, maxFeePrice, fromAddress, toAddress, opts

func (*EvmFeeEstimator) HealthReport

func (_m *EvmFeeEstimator) HealthReport() map[string]error

HealthReport provides a mock function with no fields

func (*EvmFeeEstimator) L1Oracle

func (_m *EvmFeeEstimator) L1Oracle() rollups.L1Oracle

L1Oracle provides a mock function with no fields

func (*EvmFeeEstimator) Name

func (_m *EvmFeeEstimator) Name() string

Name provides a mock function with no fields

func (*EvmFeeEstimator) OnNewLongestChain

func (_m *EvmFeeEstimator) OnNewLongestChain(ctx context.Context, head *types.Head)

OnNewLongestChain provides a mock function with given fields: ctx, head

func (*EvmFeeEstimator) Ready

func (_m *EvmFeeEstimator) Ready() error

Ready provides a mock function with no fields

func (*EvmFeeEstimator) Start

func (_m *EvmFeeEstimator) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type EvmFeeEstimator_BumpFee_Call

type EvmFeeEstimator_BumpFee_Call struct {
	*mock.Call
}

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

func (*EvmFeeEstimator_BumpFee_Call) Return

func (_c *EvmFeeEstimator_BumpFee_Call) Return(bumpedFee gas.EvmFee, chainSpecificFeeLimit uint64, err error) *EvmFeeEstimator_BumpFee_Call

func (*EvmFeeEstimator_BumpFee_Call) Run

func (_c *EvmFeeEstimator_BumpFee_Call) Run(run func(ctx context.Context, originalFee gas.EvmFee, feeLimit uint64, maxFeePrice *assets.Wei, attempts []gas.EvmPriorAttempt)) *EvmFeeEstimator_BumpFee_Call

func (*EvmFeeEstimator_BumpFee_Call) RunAndReturn

type EvmFeeEstimator_Close_Call

type EvmFeeEstimator_Close_Call struct {
	*mock.Call
}

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

func (*EvmFeeEstimator_Close_Call) Return

func (*EvmFeeEstimator_Close_Call) Run

func (*EvmFeeEstimator_Close_Call) RunAndReturn

func (_c *EvmFeeEstimator_Close_Call) RunAndReturn(run func() error) *EvmFeeEstimator_Close_Call

type EvmFeeEstimator_Expecter

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

func (*EvmFeeEstimator_Expecter) BumpFee

func (_e *EvmFeeEstimator_Expecter) BumpFee(ctx interface{}, originalFee interface{}, feeLimit interface{}, maxFeePrice interface{}, attempts interface{}) *EvmFeeEstimator_BumpFee_Call

BumpFee is a helper method to define mock.On call

  • ctx context.Context
  • originalFee gas.EvmFee
  • feeLimit uint64
  • maxFeePrice *assets.Wei
  • attempts []gas.EvmPriorAttempt

func (*EvmFeeEstimator_Expecter) Close

Close is a helper method to define mock.On call

func (*EvmFeeEstimator_Expecter) GetFee

func (_e *EvmFeeEstimator_Expecter) GetFee(ctx interface{}, calldata interface{}, feeLimit interface{}, maxFeePrice interface{}, fromAddress interface{}, toAddress interface{}, opts ...interface{}) *EvmFeeEstimator_GetFee_Call

GetFee is a helper method to define mock.On call

  • ctx context.Context
  • calldata []byte
  • feeLimit uint64
  • maxFeePrice *assets.Wei
  • fromAddress *common.Address
  • toAddress *common.Address
  • opts ...fees.Opt

func (*EvmFeeEstimator_Expecter) GetMaxCost

func (_e *EvmFeeEstimator_Expecter) GetMaxCost(ctx interface{}, amount interface{}, calldata interface{}, feeLimit interface{}, maxFeePrice interface{}, fromAddress interface{}, toAddress interface{}, opts ...interface{}) *EvmFeeEstimator_GetMaxCost_Call

GetMaxCost is a helper method to define mock.On call

  • ctx context.Context
  • amount assets.Eth
  • calldata []byte
  • feeLimit uint64
  • maxFeePrice *assets.Wei
  • fromAddress *common.Address
  • toAddress *common.Address
  • opts ...fees.Opt

func (*EvmFeeEstimator_Expecter) HealthReport

HealthReport is a helper method to define mock.On call

func (*EvmFeeEstimator_Expecter) L1Oracle

L1Oracle is a helper method to define mock.On call

func (*EvmFeeEstimator_Expecter) Name

Name is a helper method to define mock.On call

func (*EvmFeeEstimator_Expecter) OnNewLongestChain

func (_e *EvmFeeEstimator_Expecter) OnNewLongestChain(ctx interface{}, head interface{}) *EvmFeeEstimator_OnNewLongestChain_Call

OnNewLongestChain is a helper method to define mock.On call

  • ctx context.Context
  • head *types.Head

func (*EvmFeeEstimator_Expecter) Ready

Ready is a helper method to define mock.On call

func (*EvmFeeEstimator_Expecter) Start

func (_e *EvmFeeEstimator_Expecter) Start(_a0 interface{}) *EvmFeeEstimator_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

type EvmFeeEstimator_GetFee_Call

type EvmFeeEstimator_GetFee_Call struct {
	*mock.Call
}

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

func (*EvmFeeEstimator_GetFee_Call) Return

func (_c *EvmFeeEstimator_GetFee_Call) Return(fee gas.EvmFee, estimatedFeeLimit uint64, err error) *EvmFeeEstimator_GetFee_Call

func (*EvmFeeEstimator_GetFee_Call) Run

func (_c *EvmFeeEstimator_GetFee_Call) Run(run func(ctx context.Context, calldata []byte, feeLimit uint64, maxFeePrice *assets.Wei, fromAddress *common.Address, toAddress *common.Address, opts ...fees.Opt)) *EvmFeeEstimator_GetFee_Call

func (*EvmFeeEstimator_GetFee_Call) RunAndReturn

type EvmFeeEstimator_GetMaxCost_Call

type EvmFeeEstimator_GetMaxCost_Call struct {
	*mock.Call
}

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

func (*EvmFeeEstimator_GetMaxCost_Call) Return

func (*EvmFeeEstimator_GetMaxCost_Call) Run

func (_c *EvmFeeEstimator_GetMaxCost_Call) Run(run func(ctx context.Context, amount assets.Eth, calldata []byte, feeLimit uint64, maxFeePrice *assets.Wei, fromAddress *common.Address, toAddress *common.Address, opts ...fees.Opt)) *EvmFeeEstimator_GetMaxCost_Call

func (*EvmFeeEstimator_GetMaxCost_Call) RunAndReturn

type EvmFeeEstimator_HealthReport_Call

type EvmFeeEstimator_HealthReport_Call struct {
	*mock.Call
}

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

func (*EvmFeeEstimator_HealthReport_Call) Return

func (*EvmFeeEstimator_HealthReport_Call) Run

func (*EvmFeeEstimator_HealthReport_Call) RunAndReturn

type EvmFeeEstimator_L1Oracle_Call

type EvmFeeEstimator_L1Oracle_Call struct {
	*mock.Call
}

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

func (*EvmFeeEstimator_L1Oracle_Call) Return

func (*EvmFeeEstimator_L1Oracle_Call) Run

func (*EvmFeeEstimator_L1Oracle_Call) RunAndReturn

type EvmFeeEstimator_Name_Call

type EvmFeeEstimator_Name_Call struct {
	*mock.Call
}

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

func (*EvmFeeEstimator_Name_Call) Return

func (*EvmFeeEstimator_Name_Call) Run

func (*EvmFeeEstimator_Name_Call) RunAndReturn

func (_c *EvmFeeEstimator_Name_Call) RunAndReturn(run func() string) *EvmFeeEstimator_Name_Call

type EvmFeeEstimator_OnNewLongestChain_Call

type EvmFeeEstimator_OnNewLongestChain_Call struct {
	*mock.Call
}

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

func (*EvmFeeEstimator_OnNewLongestChain_Call) Return

func (*EvmFeeEstimator_OnNewLongestChain_Call) Run

func (*EvmFeeEstimator_OnNewLongestChain_Call) RunAndReturn

type EvmFeeEstimator_Ready_Call

type EvmFeeEstimator_Ready_Call struct {
	*mock.Call
}

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

func (*EvmFeeEstimator_Ready_Call) Return

func (*EvmFeeEstimator_Ready_Call) Run

func (*EvmFeeEstimator_Ready_Call) RunAndReturn

func (_c *EvmFeeEstimator_Ready_Call) RunAndReturn(run func() error) *EvmFeeEstimator_Ready_Call

type EvmFeeEstimator_Start_Call

type EvmFeeEstimator_Start_Call struct {
	*mock.Call
}

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

func (*EvmFeeEstimator_Start_Call) Return

func (*EvmFeeEstimator_Start_Call) Run

func (*EvmFeeEstimator_Start_Call) RunAndReturn

type FeeEstimatorClient

type FeeEstimatorClient struct {
	mock.Mock
}

FeeEstimatorClient is an autogenerated mock type for the feeEstimatorClient type

func NewFeeEstimatorClient

func NewFeeEstimatorClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *FeeEstimatorClient

NewFeeEstimatorClient creates a new instance of FeeEstimatorClient. 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 (*FeeEstimatorClient) BatchCallContext

func (_m *FeeEstimatorClient) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error

BatchCallContext provides a mock function with given fields: ctx, b

func (*FeeEstimatorClient) CallContext

func (_m *FeeEstimatorClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error

CallContext provides a mock function with given fields: ctx, result, method, args

func (*FeeEstimatorClient) CallContract

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

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

func (*FeeEstimatorClient) EXPECT

func (*FeeEstimatorClient) EstimateGas

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

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

func (*FeeEstimatorClient) FeeHistory

func (_m *FeeEstimatorClient) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64) (*ethereum.FeeHistory, error)

FeeHistory provides a mock function with given fields: ctx, blockCount, lastBlock, rewardPercentiles

func (*FeeEstimatorClient) HeadByNumber

func (_m *FeeEstimatorClient) HeadByNumber(ctx context.Context, n *big.Int) (*types.Head, error)

HeadByNumber provides a mock function with given fields: ctx, n

func (*FeeEstimatorClient) SuggestGasPrice

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

SuggestGasPrice provides a mock function with given fields: ctx

type FeeEstimatorClient_BatchCallContext_Call

type FeeEstimatorClient_BatchCallContext_Call struct {
	*mock.Call
}

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

func (*FeeEstimatorClient_BatchCallContext_Call) Return

func (*FeeEstimatorClient_BatchCallContext_Call) Run

func (*FeeEstimatorClient_BatchCallContext_Call) RunAndReturn

type FeeEstimatorClient_CallContext_Call

type FeeEstimatorClient_CallContext_Call struct {
	*mock.Call
}

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

func (*FeeEstimatorClient_CallContext_Call) Return

func (*FeeEstimatorClient_CallContext_Call) Run

func (_c *FeeEstimatorClient_CallContext_Call) Run(run func(ctx context.Context, result interface{}, method string, args ...interface{})) *FeeEstimatorClient_CallContext_Call

func (*FeeEstimatorClient_CallContext_Call) RunAndReturn

func (_c *FeeEstimatorClient_CallContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *FeeEstimatorClient_CallContext_Call

type FeeEstimatorClient_CallContract_Call

type FeeEstimatorClient_CallContract_Call struct {
	*mock.Call
}

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

func (*FeeEstimatorClient_CallContract_Call) Return

func (*FeeEstimatorClient_CallContract_Call) Run

func (*FeeEstimatorClient_CallContract_Call) RunAndReturn

type FeeEstimatorClient_EstimateGas_Call

type FeeEstimatorClient_EstimateGas_Call struct {
	*mock.Call
}

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

func (*FeeEstimatorClient_EstimateGas_Call) Return

func (*FeeEstimatorClient_EstimateGas_Call) Run

func (*FeeEstimatorClient_EstimateGas_Call) RunAndReturn

type FeeEstimatorClient_Expecter

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

func (*FeeEstimatorClient_Expecter) BatchCallContext

func (_e *FeeEstimatorClient_Expecter) BatchCallContext(ctx interface{}, b interface{}) *FeeEstimatorClient_BatchCallContext_Call

BatchCallContext is a helper method to define mock.On call

  • ctx context.Context
  • b []rpc.BatchElem

func (*FeeEstimatorClient_Expecter) CallContext

func (_e *FeeEstimatorClient_Expecter) CallContext(ctx interface{}, result interface{}, method interface{}, args ...interface{}) *FeeEstimatorClient_CallContext_Call

CallContext is a helper method to define mock.On call

  • ctx context.Context
  • result interface{}
  • method string
  • args ...interface{}

func (*FeeEstimatorClient_Expecter) CallContract

func (_e *FeeEstimatorClient_Expecter) CallContract(ctx interface{}, msg interface{}, blockNumber interface{}) *FeeEstimatorClient_CallContract_Call

CallContract is a helper method to define mock.On call

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

func (*FeeEstimatorClient_Expecter) EstimateGas

func (_e *FeeEstimatorClient_Expecter) EstimateGas(ctx interface{}, call interface{}) *FeeEstimatorClient_EstimateGas_Call

EstimateGas is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg

func (*FeeEstimatorClient_Expecter) FeeHistory

func (_e *FeeEstimatorClient_Expecter) FeeHistory(ctx interface{}, blockCount interface{}, lastBlock interface{}, rewardPercentiles interface{}) *FeeEstimatorClient_FeeHistory_Call

FeeHistory is a helper method to define mock.On call

  • ctx context.Context
  • blockCount uint64
  • lastBlock *big.Int
  • rewardPercentiles []float64

func (*FeeEstimatorClient_Expecter) HeadByNumber

func (_e *FeeEstimatorClient_Expecter) HeadByNumber(ctx interface{}, n interface{}) *FeeEstimatorClient_HeadByNumber_Call

HeadByNumber is a helper method to define mock.On call

  • ctx context.Context
  • n *big.Int

func (*FeeEstimatorClient_Expecter) SuggestGasPrice

func (_e *FeeEstimatorClient_Expecter) SuggestGasPrice(ctx interface{}) *FeeEstimatorClient_SuggestGasPrice_Call

SuggestGasPrice is a helper method to define mock.On call

  • ctx context.Context

type FeeEstimatorClient_FeeHistory_Call

type FeeEstimatorClient_FeeHistory_Call struct {
	*mock.Call
}

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

func (*FeeEstimatorClient_FeeHistory_Call) Return

func (*FeeEstimatorClient_FeeHistory_Call) Run

func (_c *FeeEstimatorClient_FeeHistory_Call) Run(run func(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64)) *FeeEstimatorClient_FeeHistory_Call

func (*FeeEstimatorClient_FeeHistory_Call) RunAndReturn

type FeeEstimatorClient_HeadByNumber_Call

type FeeEstimatorClient_HeadByNumber_Call struct {
	*mock.Call
}

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

func (*FeeEstimatorClient_HeadByNumber_Call) Return

func (*FeeEstimatorClient_HeadByNumber_Call) Run

func (*FeeEstimatorClient_HeadByNumber_Call) RunAndReturn

type FeeEstimatorClient_SuggestGasPrice_Call

type FeeEstimatorClient_SuggestGasPrice_Call struct {
	*mock.Call
}

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

func (*FeeEstimatorClient_SuggestGasPrice_Call) Return

func (*FeeEstimatorClient_SuggestGasPrice_Call) Run

func (*FeeEstimatorClient_SuggestGasPrice_Call) RunAndReturn

type FeeHistoryEstimatorClient

type FeeHistoryEstimatorClient struct {
	mock.Mock
}

FeeHistoryEstimatorClient is an autogenerated mock type for the feeHistoryEstimatorClient type

func NewFeeHistoryEstimatorClient

func NewFeeHistoryEstimatorClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *FeeHistoryEstimatorClient

NewFeeHistoryEstimatorClient creates a new instance of FeeHistoryEstimatorClient. 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 (*FeeHistoryEstimatorClient) EXPECT

func (*FeeHistoryEstimatorClient) FeeHistory

func (_m *FeeHistoryEstimatorClient) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64) (*ethereum.FeeHistory, error)

FeeHistory provides a mock function with given fields: ctx, blockCount, lastBlock, rewardPercentiles

func (*FeeHistoryEstimatorClient) SuggestGasPrice

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

SuggestGasPrice provides a mock function with given fields: ctx

type FeeHistoryEstimatorClient_Expecter

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

func (*FeeHistoryEstimatorClient_Expecter) FeeHistory

func (_e *FeeHistoryEstimatorClient_Expecter) FeeHistory(ctx interface{}, blockCount interface{}, lastBlock interface{}, rewardPercentiles interface{}) *FeeHistoryEstimatorClient_FeeHistory_Call

FeeHistory is a helper method to define mock.On call

  • ctx context.Context
  • blockCount uint64
  • lastBlock *big.Int
  • rewardPercentiles []float64

func (*FeeHistoryEstimatorClient_Expecter) SuggestGasPrice

SuggestGasPrice is a helper method to define mock.On call

  • ctx context.Context

type FeeHistoryEstimatorClient_FeeHistory_Call

type FeeHistoryEstimatorClient_FeeHistory_Call struct {
	*mock.Call
}

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

func (*FeeHistoryEstimatorClient_FeeHistory_Call) Return

func (*FeeHistoryEstimatorClient_FeeHistory_Call) Run

func (_c *FeeHistoryEstimatorClient_FeeHistory_Call) Run(run func(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64)) *FeeHistoryEstimatorClient_FeeHistory_Call

func (*FeeHistoryEstimatorClient_FeeHistory_Call) RunAndReturn

type FeeHistoryEstimatorClient_SuggestGasPrice_Call

type FeeHistoryEstimatorClient_SuggestGasPrice_Call struct {
	*mock.Call
}

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

func (*FeeHistoryEstimatorClient_SuggestGasPrice_Call) Return

func (*FeeHistoryEstimatorClient_SuggestGasPrice_Call) Run

func (*FeeHistoryEstimatorClient_SuggestGasPrice_Call) RunAndReturn

Jump to

Keyboard shortcuts

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