mocks

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: 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 Config

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func NewConfig

func NewConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *Config

NewConfig creates a new instance of Config. 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 (*Config) ChainType

func (_m *Config) ChainType() chaintype.ChainType

ChainType provides a mock function with given fields:

func (*Config) EXPECT added in v2.15.0

func (_m *Config) EXPECT() *Config_Expecter

func (*Config) FinalityDepth added in v2.3.0

func (_m *Config) FinalityDepth() uint32

FinalityDepth provides a mock function with given fields:

func (*Config) FinalityTagEnabled added in v2.4.0

func (_m *Config) FinalityTagEnabled() bool

FinalityTagEnabled provides a mock function with given fields:

type Config_ChainType_Call added in v2.15.0

type Config_ChainType_Call struct {
	*mock.Call
}

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

func (*Config_ChainType_Call) Return added in v2.15.0

func (*Config_ChainType_Call) Run added in v2.15.0

func (_c *Config_ChainType_Call) Run(run func()) *Config_ChainType_Call

func (*Config_ChainType_Call) RunAndReturn added in v2.15.0

func (_c *Config_ChainType_Call) RunAndReturn(run func() chaintype.ChainType) *Config_ChainType_Call

type Config_Expecter added in v2.15.0

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

func (*Config_Expecter) ChainType added in v2.15.0

func (_e *Config_Expecter) ChainType() *Config_ChainType_Call

ChainType is a helper method to define mock.On call

func (*Config_Expecter) FinalityDepth added in v2.15.0

func (_e *Config_Expecter) FinalityDepth() *Config_FinalityDepth_Call

FinalityDepth is a helper method to define mock.On call

func (*Config_Expecter) FinalityTagEnabled added in v2.15.0

func (_e *Config_Expecter) FinalityTagEnabled() *Config_FinalityTagEnabled_Call

FinalityTagEnabled is a helper method to define mock.On call

type Config_FinalityDepth_Call added in v2.15.0

type Config_FinalityDepth_Call struct {
	*mock.Call
}

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

func (*Config_FinalityDepth_Call) Return added in v2.15.0

func (*Config_FinalityDepth_Call) Run added in v2.15.0

func (*Config_FinalityDepth_Call) RunAndReturn added in v2.15.0

func (_c *Config_FinalityDepth_Call) RunAndReturn(run func() uint32) *Config_FinalityDepth_Call

type Config_FinalityTagEnabled_Call added in v2.15.0

type Config_FinalityTagEnabled_Call struct {
	*mock.Call
}

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

func (*Config_FinalityTagEnabled_Call) Return added in v2.15.0

func (*Config_FinalityTagEnabled_Call) Run added in v2.15.0

func (*Config_FinalityTagEnabled_Call) RunAndReturn added in v2.15.0

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 given fields:

func (*EvmEstimator) EXPECT added in v2.15.0

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 ...types.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 given fields:

func (*EvmEstimator) L1Oracle added in v2.12.0

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

L1Oracle provides a mock function with given fields:

func (*EvmEstimator) Name

func (_m *EvmEstimator) Name() string

Name provides a mock function with given fields:

func (*EvmEstimator) OnNewLongestChain

func (_m *EvmEstimator) OnNewLongestChain(ctx context.Context, head *evmtypes.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 given 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 added in v2.15.0

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 added in v2.15.0

func (*EvmEstimator_BumpDynamicFee_Call) Run added in v2.15.0

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 added in v2.15.0

type EvmEstimator_BumpLegacyGas_Call added in v2.15.0

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 added in v2.15.0

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

func (*EvmEstimator_BumpLegacyGas_Call) Run added in v2.15.0

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 added in v2.15.0

type EvmEstimator_Close_Call added in v2.15.0

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 added in v2.15.0

func (*EvmEstimator_Close_Call) Run added in v2.15.0

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

func (*EvmEstimator_Close_Call) RunAndReturn added in v2.15.0

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

type EvmEstimator_Expecter added in v2.15.0

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

func (*EvmEstimator_Expecter) BumpDynamicFee added in v2.15.0

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 added in v2.15.0

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 added in v2.15.0

Close is a helper method to define mock.On call

func (*EvmEstimator_Expecter) GetDynamicFee added in v2.15.0

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 added in v2.15.0

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 ...types.Opt

func (*EvmEstimator_Expecter) HealthReport added in v2.15.0

HealthReport is a helper method to define mock.On call

func (*EvmEstimator_Expecter) L1Oracle added in v2.15.0

L1Oracle is a helper method to define mock.On call

func (*EvmEstimator_Expecter) Name added in v2.15.0

Name is a helper method to define mock.On call

func (*EvmEstimator_Expecter) OnNewLongestChain added in v2.15.0

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 *evmtypes.Head

func (*EvmEstimator_Expecter) Ready added in v2.15.0

Ready is a helper method to define mock.On call

func (*EvmEstimator_Expecter) Start added in v2.15.0

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 added in v2.15.0

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 added in v2.15.0

func (*EvmEstimator_GetDynamicFee_Call) Run added in v2.15.0

func (*EvmEstimator_GetDynamicFee_Call) RunAndReturn added in v2.15.0

type EvmEstimator_GetLegacyGas_Call added in v2.15.0

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 added in v2.15.0

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

func (*EvmEstimator_GetLegacyGas_Call) Run added in v2.15.0

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

func (*EvmEstimator_GetLegacyGas_Call) RunAndReturn added in v2.15.0

type EvmEstimator_HealthReport_Call added in v2.15.0

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 added in v2.15.0

func (*EvmEstimator_HealthReport_Call) Run added in v2.15.0

func (*EvmEstimator_HealthReport_Call) RunAndReturn added in v2.15.0

type EvmEstimator_L1Oracle_Call added in v2.15.0

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 added in v2.15.0

func (*EvmEstimator_L1Oracle_Call) Run added in v2.15.0

func (*EvmEstimator_L1Oracle_Call) RunAndReturn added in v2.15.0

type EvmEstimator_Name_Call added in v2.15.0

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 added in v2.15.0

func (*EvmEstimator_Name_Call) Run added in v2.15.0

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

func (*EvmEstimator_Name_Call) RunAndReturn added in v2.15.0

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

type EvmEstimator_OnNewLongestChain_Call added in v2.15.0

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 added in v2.15.0

func (*EvmEstimator_OnNewLongestChain_Call) Run added in v2.15.0

func (*EvmEstimator_OnNewLongestChain_Call) RunAndReturn added in v2.15.0

type EvmEstimator_Ready_Call added in v2.15.0

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 added in v2.15.0

func (*EvmEstimator_Ready_Call) Run added in v2.15.0

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

func (*EvmEstimator_Ready_Call) RunAndReturn added in v2.15.0

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

type EvmEstimator_Start_Call added in v2.15.0

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 added in v2.15.0

func (*EvmEstimator_Start_Call) Run added in v2.15.0

func (*EvmEstimator_Start_Call) RunAndReturn added in v2.15.0

type EvmFeeEstimator added in v2.3.0

type EvmFeeEstimator struct {
	mock.Mock
}

EvmFeeEstimator is an autogenerated mock type for the EvmFeeEstimator type

func NewEvmFeeEstimator added in v2.3.0

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 added in v2.3.0

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 added in v2.3.0

func (_m *EvmFeeEstimator) Close() error

Close provides a mock function with given fields:

func (*EvmFeeEstimator) EXPECT added in v2.15.0

func (*EvmFeeEstimator) GetFee added in v2.3.0

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

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

func (*EvmFeeEstimator) GetMaxCost added in v2.4.0

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

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

func (*EvmFeeEstimator) HealthReport added in v2.3.0

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

HealthReport provides a mock function with given fields:

func (*EvmFeeEstimator) L1Oracle added in v2.6.0

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

L1Oracle provides a mock function with given fields:

func (*EvmFeeEstimator) Name added in v2.3.0

func (_m *EvmFeeEstimator) Name() string

Name provides a mock function with given fields:

func (*EvmFeeEstimator) OnNewLongestChain added in v2.3.0

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

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

func (*EvmFeeEstimator) Ready added in v2.3.0

func (_m *EvmFeeEstimator) Ready() error

Ready provides a mock function with given fields:

func (*EvmFeeEstimator) Start added in v2.3.0

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

Start provides a mock function with given fields: _a0

type EvmFeeEstimator_BumpFee_Call added in v2.15.0

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 added in v2.15.0

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

func (*EvmFeeEstimator_BumpFee_Call) Run added in v2.15.0

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 added in v2.15.0

type EvmFeeEstimator_Close_Call added in v2.15.0

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 added in v2.15.0

func (*EvmFeeEstimator_Close_Call) Run added in v2.15.0

func (*EvmFeeEstimator_Close_Call) RunAndReturn added in v2.15.0

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

type EvmFeeEstimator_Expecter added in v2.15.0

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

func (*EvmFeeEstimator_Expecter) BumpFee added in v2.15.0

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 added in v2.15.0

Close is a helper method to define mock.On call

func (*EvmFeeEstimator_Expecter) GetFee added in v2.15.0

func (_e *EvmFeeEstimator_Expecter) GetFee(ctx interface{}, calldata interface{}, feeLimit interface{}, maxFeePrice 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
  • opts ...types.Opt

func (*EvmFeeEstimator_Expecter) GetMaxCost added in v2.15.0

func (_e *EvmFeeEstimator_Expecter) GetMaxCost(ctx interface{}, amount interface{}, calldata interface{}, feeLimit interface{}, maxFeePrice 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
  • opts ...types.Opt

func (*EvmFeeEstimator_Expecter) HealthReport added in v2.15.0

HealthReport is a helper method to define mock.On call

func (*EvmFeeEstimator_Expecter) L1Oracle added in v2.15.0

L1Oracle is a helper method to define mock.On call

func (*EvmFeeEstimator_Expecter) Name added in v2.15.0

Name is a helper method to define mock.On call

func (*EvmFeeEstimator_Expecter) OnNewLongestChain added in v2.15.0

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 *evmtypes.Head

func (*EvmFeeEstimator_Expecter) Ready added in v2.15.0

Ready is a helper method to define mock.On call

func (*EvmFeeEstimator_Expecter) Start added in v2.15.0

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 added in v2.15.0

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 added in v2.15.0

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

func (*EvmFeeEstimator_GetFee_Call) Run added in v2.15.0

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

func (*EvmFeeEstimator_GetFee_Call) RunAndReturn added in v2.15.0

type EvmFeeEstimator_GetMaxCost_Call added in v2.15.0

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 added in v2.15.0

func (*EvmFeeEstimator_GetMaxCost_Call) Run added in v2.15.0

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

func (*EvmFeeEstimator_GetMaxCost_Call) RunAndReturn added in v2.15.0

type EvmFeeEstimator_HealthReport_Call added in v2.15.0

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 added in v2.15.0

func (*EvmFeeEstimator_HealthReport_Call) Run added in v2.15.0

func (*EvmFeeEstimator_HealthReport_Call) RunAndReturn added in v2.15.0

type EvmFeeEstimator_L1Oracle_Call added in v2.15.0

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 added in v2.15.0

func (*EvmFeeEstimator_L1Oracle_Call) Run added in v2.15.0

func (*EvmFeeEstimator_L1Oracle_Call) RunAndReturn added in v2.15.0

type EvmFeeEstimator_Name_Call added in v2.15.0

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 added in v2.15.0

func (*EvmFeeEstimator_Name_Call) Run added in v2.15.0

func (*EvmFeeEstimator_Name_Call) RunAndReturn added in v2.15.0

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

type EvmFeeEstimator_OnNewLongestChain_Call added in v2.15.0

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 added in v2.15.0

func (*EvmFeeEstimator_OnNewLongestChain_Call) Run added in v2.15.0

func (*EvmFeeEstimator_OnNewLongestChain_Call) RunAndReturn added in v2.15.0

type EvmFeeEstimator_Ready_Call added in v2.15.0

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 added in v2.15.0

func (*EvmFeeEstimator_Ready_Call) Run added in v2.15.0

func (*EvmFeeEstimator_Ready_Call) RunAndReturn added in v2.15.0

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

type EvmFeeEstimator_Start_Call added in v2.15.0

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 added in v2.15.0

func (*EvmFeeEstimator_Start_Call) Run added in v2.15.0

func (*EvmFeeEstimator_Start_Call) RunAndReturn added in v2.15.0

type FeeEstimatorClient added in v2.12.0

type FeeEstimatorClient struct {
	mock.Mock
}

FeeEstimatorClient is an autogenerated mock type for the feeEstimatorClient type

func NewFeeEstimatorClient added in v2.12.0

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 added in v2.12.0

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

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

func (*FeeEstimatorClient) CallContext added in v2.12.0

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 added in v2.12.0

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) ConfiguredChainID added in v2.12.0

func (_m *FeeEstimatorClient) ConfiguredChainID() *big.Int

ConfiguredChainID provides a mock function with given fields:

func (*FeeEstimatorClient) EXPECT added in v2.15.0

func (*FeeEstimatorClient) HeadByNumber added in v2.12.0

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

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

type FeeEstimatorClient_BatchCallContext_Call added in v2.15.0

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 added in v2.15.0

func (*FeeEstimatorClient_BatchCallContext_Call) Run added in v2.15.0

func (*FeeEstimatorClient_BatchCallContext_Call) RunAndReturn added in v2.15.0

type FeeEstimatorClient_CallContext_Call added in v2.15.0

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 added in v2.15.0

func (*FeeEstimatorClient_CallContext_Call) Run added in v2.15.0

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 added in v2.15.0

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

type FeeEstimatorClient_CallContract_Call added in v2.15.0

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 added in v2.15.0

func (*FeeEstimatorClient_CallContract_Call) Run added in v2.15.0

func (*FeeEstimatorClient_CallContract_Call) RunAndReturn added in v2.15.0

type FeeEstimatorClient_ConfiguredChainID_Call added in v2.15.0

type FeeEstimatorClient_ConfiguredChainID_Call struct {
	*mock.Call
}

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

func (*FeeEstimatorClient_ConfiguredChainID_Call) Return added in v2.15.0

func (*FeeEstimatorClient_ConfiguredChainID_Call) Run added in v2.15.0

func (*FeeEstimatorClient_ConfiguredChainID_Call) RunAndReturn added in v2.15.0

type FeeEstimatorClient_Expecter added in v2.15.0

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

func (*FeeEstimatorClient_Expecter) BatchCallContext added in v2.15.0

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 added in v2.15.0

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 added in v2.15.0

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) ConfiguredChainID added in v2.15.0

ConfiguredChainID is a helper method to define mock.On call

func (*FeeEstimatorClient_Expecter) HeadByNumber added in v2.15.0

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

type FeeEstimatorClient_HeadByNumber_Call added in v2.15.0

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 added in v2.15.0

func (*FeeEstimatorClient_HeadByNumber_Call) Run added in v2.15.0

func (*FeeEstimatorClient_HeadByNumber_Call) RunAndReturn added in v2.15.0

Jump to

Keyboard shortcuts

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