Documentation
¶
Index ¶
- type EvmEstimator
- func (_m *EvmEstimator) BumpDynamicFee(ctx context.Context, original gas.DynamicFee, maxGasPriceWei *assets.Wei, ...) (gas.DynamicFee, error)
- func (_m *EvmEstimator) BumpLegacyGas(ctx context.Context, originalGasPrice *assets.Wei, gasLimit uint64, ...) (*assets.Wei, uint64, error)
- func (_m *EvmEstimator) Close() error
- func (_m *EvmEstimator) EXPECT() *EvmEstimator_Expecter
- func (_m *EvmEstimator) GetDynamicFee(ctx context.Context, maxGasPriceWei *assets.Wei) (gas.DynamicFee, error)
- func (_m *EvmEstimator) GetLegacyGas(ctx context.Context, calldata []byte, gasLimit uint64, ...) (*assets.Wei, uint64, error)
- func (_m *EvmEstimator) HealthReport() map[string]error
- func (_m *EvmEstimator) L1Oracle() rollups.L1Oracle
- func (_m *EvmEstimator) Name() string
- func (_m *EvmEstimator) OnNewLongestChain(ctx context.Context, head *types.Head)
- func (_m *EvmEstimator) Ready() error
- func (_m *EvmEstimator) Start(_a0 context.Context) error
- type EvmEstimator_BumpDynamicFee_Call
- func (_c *EvmEstimator_BumpDynamicFee_Call) Return(bumped gas.DynamicFee, err error) *EvmEstimator_BumpDynamicFee_Call
- func (_c *EvmEstimator_BumpDynamicFee_Call) Run(...) *EvmEstimator_BumpDynamicFee_Call
- func (_c *EvmEstimator_BumpDynamicFee_Call) RunAndReturn(...) *EvmEstimator_BumpDynamicFee_Call
- type EvmEstimator_BumpLegacyGas_Call
- func (_c *EvmEstimator_BumpLegacyGas_Call) Return(bumpedGasPrice *assets.Wei, chainSpecificGasLimit uint64, err error) *EvmEstimator_BumpLegacyGas_Call
- func (_c *EvmEstimator_BumpLegacyGas_Call) Run(...) *EvmEstimator_BumpLegacyGas_Call
- func (_c *EvmEstimator_BumpLegacyGas_Call) RunAndReturn(...) *EvmEstimator_BumpLegacyGas_Call
- type EvmEstimator_Close_Call
- type EvmEstimator_Expecter
- func (_e *EvmEstimator_Expecter) BumpDynamicFee(ctx interface{}, original interface{}, maxGasPriceWei interface{}, ...) *EvmEstimator_BumpDynamicFee_Call
- func (_e *EvmEstimator_Expecter) BumpLegacyGas(ctx interface{}, originalGasPrice interface{}, gasLimit interface{}, ...) *EvmEstimator_BumpLegacyGas_Call
- func (_e *EvmEstimator_Expecter) Close() *EvmEstimator_Close_Call
- func (_e *EvmEstimator_Expecter) GetDynamicFee(ctx interface{}, maxGasPriceWei interface{}) *EvmEstimator_GetDynamicFee_Call
- func (_e *EvmEstimator_Expecter) GetLegacyGas(ctx interface{}, calldata interface{}, gasLimit interface{}, ...) *EvmEstimator_GetLegacyGas_Call
- func (_e *EvmEstimator_Expecter) HealthReport() *EvmEstimator_HealthReport_Call
- func (_e *EvmEstimator_Expecter) L1Oracle() *EvmEstimator_L1Oracle_Call
- func (_e *EvmEstimator_Expecter) Name() *EvmEstimator_Name_Call
- func (_e *EvmEstimator_Expecter) OnNewLongestChain(ctx interface{}, head interface{}) *EvmEstimator_OnNewLongestChain_Call
- func (_e *EvmEstimator_Expecter) Ready() *EvmEstimator_Ready_Call
- func (_e *EvmEstimator_Expecter) Start(_a0 interface{}) *EvmEstimator_Start_Call
- type EvmEstimator_GetDynamicFee_Call
- func (_c *EvmEstimator_GetDynamicFee_Call) Return(fee gas.DynamicFee, err error) *EvmEstimator_GetDynamicFee_Call
- func (_c *EvmEstimator_GetDynamicFee_Call) Run(run func(ctx context.Context, maxGasPriceWei *assets.Wei)) *EvmEstimator_GetDynamicFee_Call
- func (_c *EvmEstimator_GetDynamicFee_Call) RunAndReturn(run func(context.Context, *assets.Wei) (gas.DynamicFee, error)) *EvmEstimator_GetDynamicFee_Call
- type EvmEstimator_GetLegacyGas_Call
- func (_c *EvmEstimator_GetLegacyGas_Call) Return(gasPrice *assets.Wei, chainSpecificGasLimit uint64, err error) *EvmEstimator_GetLegacyGas_Call
- func (_c *EvmEstimator_GetLegacyGas_Call) Run(run func(ctx context.Context, calldata []byte, gasLimit uint64, ...)) *EvmEstimator_GetLegacyGas_Call
- func (_c *EvmEstimator_GetLegacyGas_Call) RunAndReturn(...) *EvmEstimator_GetLegacyGas_Call
- type EvmEstimator_HealthReport_Call
- func (_c *EvmEstimator_HealthReport_Call) Return(_a0 map[string]error) *EvmEstimator_HealthReport_Call
- func (_c *EvmEstimator_HealthReport_Call) Run(run func()) *EvmEstimator_HealthReport_Call
- func (_c *EvmEstimator_HealthReport_Call) RunAndReturn(run func() map[string]error) *EvmEstimator_HealthReport_Call
- type EvmEstimator_L1Oracle_Call
- type EvmEstimator_Name_Call
- type EvmEstimator_OnNewLongestChain_Call
- func (_c *EvmEstimator_OnNewLongestChain_Call) Return() *EvmEstimator_OnNewLongestChain_Call
- func (_c *EvmEstimator_OnNewLongestChain_Call) Run(run func(ctx context.Context, head *types.Head)) *EvmEstimator_OnNewLongestChain_Call
- func (_c *EvmEstimator_OnNewLongestChain_Call) RunAndReturn(run func(context.Context, *types.Head)) *EvmEstimator_OnNewLongestChain_Call
- type EvmEstimator_Ready_Call
- type EvmEstimator_Start_Call
- type EvmFeeEstimator
- func (_m *EvmFeeEstimator) BumpFee(ctx context.Context, originalFee gas.EvmFee, feeLimit uint64, ...) (gas.EvmFee, uint64, error)
- func (_m *EvmFeeEstimator) Close() error
- func (_m *EvmFeeEstimator) EXPECT() *EvmFeeEstimator_Expecter
- func (_m *EvmFeeEstimator) GetFee(ctx context.Context, calldata []byte, feeLimit uint64, maxFeePrice *assets.Wei, ...) (gas.EvmFee, uint64, error)
- func (_m *EvmFeeEstimator) GetMaxCost(ctx context.Context, amount assets.Eth, calldata []byte, feeLimit uint64, ...) (*big.Int, error)
- func (_m *EvmFeeEstimator) HealthReport() map[string]error
- func (_m *EvmFeeEstimator) L1Oracle() rollups.L1Oracle
- func (_m *EvmFeeEstimator) Name() string
- func (_m *EvmFeeEstimator) OnNewLongestChain(ctx context.Context, head *types.Head)
- func (_m *EvmFeeEstimator) Ready() error
- func (_m *EvmFeeEstimator) Start(_a0 context.Context) error
- type EvmFeeEstimator_BumpFee_Call
- func (_c *EvmFeeEstimator_BumpFee_Call) Return(bumpedFee gas.EvmFee, chainSpecificFeeLimit uint64, err error) *EvmFeeEstimator_BumpFee_Call
- func (_c *EvmFeeEstimator_BumpFee_Call) Run(run func(ctx context.Context, originalFee gas.EvmFee, feeLimit uint64, ...)) *EvmFeeEstimator_BumpFee_Call
- func (_c *EvmFeeEstimator_BumpFee_Call) RunAndReturn(...) *EvmFeeEstimator_BumpFee_Call
- type EvmFeeEstimator_Close_Call
- type EvmFeeEstimator_Expecter
- func (_e *EvmFeeEstimator_Expecter) BumpFee(ctx interface{}, originalFee interface{}, feeLimit interface{}, ...) *EvmFeeEstimator_BumpFee_Call
- func (_e *EvmFeeEstimator_Expecter) Close() *EvmFeeEstimator_Close_Call
- func (_e *EvmFeeEstimator_Expecter) GetFee(ctx interface{}, calldata interface{}, feeLimit interface{}, ...) *EvmFeeEstimator_GetFee_Call
- func (_e *EvmFeeEstimator_Expecter) GetMaxCost(ctx interface{}, amount interface{}, calldata interface{}, ...) *EvmFeeEstimator_GetMaxCost_Call
- func (_e *EvmFeeEstimator_Expecter) HealthReport() *EvmFeeEstimator_HealthReport_Call
- func (_e *EvmFeeEstimator_Expecter) L1Oracle() *EvmFeeEstimator_L1Oracle_Call
- func (_e *EvmFeeEstimator_Expecter) Name() *EvmFeeEstimator_Name_Call
- func (_e *EvmFeeEstimator_Expecter) OnNewLongestChain(ctx interface{}, head interface{}) *EvmFeeEstimator_OnNewLongestChain_Call
- func (_e *EvmFeeEstimator_Expecter) Ready() *EvmFeeEstimator_Ready_Call
- func (_e *EvmFeeEstimator_Expecter) Start(_a0 interface{}) *EvmFeeEstimator_Start_Call
- type EvmFeeEstimator_GetFee_Call
- type EvmFeeEstimator_GetMaxCost_Call
- type EvmFeeEstimator_HealthReport_Call
- func (_c *EvmFeeEstimator_HealthReport_Call) Return(_a0 map[string]error) *EvmFeeEstimator_HealthReport_Call
- func (_c *EvmFeeEstimator_HealthReport_Call) Run(run func()) *EvmFeeEstimator_HealthReport_Call
- func (_c *EvmFeeEstimator_HealthReport_Call) RunAndReturn(run func() map[string]error) *EvmFeeEstimator_HealthReport_Call
- type EvmFeeEstimator_L1Oracle_Call
- func (_c *EvmFeeEstimator_L1Oracle_Call) Return(_a0 rollups.L1Oracle) *EvmFeeEstimator_L1Oracle_Call
- func (_c *EvmFeeEstimator_L1Oracle_Call) Run(run func()) *EvmFeeEstimator_L1Oracle_Call
- func (_c *EvmFeeEstimator_L1Oracle_Call) RunAndReturn(run func() rollups.L1Oracle) *EvmFeeEstimator_L1Oracle_Call
- type EvmFeeEstimator_Name_Call
- type EvmFeeEstimator_OnNewLongestChain_Call
- func (_c *EvmFeeEstimator_OnNewLongestChain_Call) Return() *EvmFeeEstimator_OnNewLongestChain_Call
- func (_c *EvmFeeEstimator_OnNewLongestChain_Call) Run(run func(ctx context.Context, head *types.Head)) *EvmFeeEstimator_OnNewLongestChain_Call
- func (_c *EvmFeeEstimator_OnNewLongestChain_Call) RunAndReturn(run func(context.Context, *types.Head)) *EvmFeeEstimator_OnNewLongestChain_Call
- type EvmFeeEstimator_Ready_Call
- type EvmFeeEstimator_Start_Call
- type FeeEstimatorClient
- func (_m *FeeEstimatorClient) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *FeeEstimatorClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *FeeEstimatorClient) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *FeeEstimatorClient) EXPECT() *FeeEstimatorClient_Expecter
- func (_m *FeeEstimatorClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *FeeEstimatorClient) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*ethereum.FeeHistory, error)
- func (_m *FeeEstimatorClient) HeadByNumber(ctx context.Context, n *big.Int) (*types.Head, error)
- func (_m *FeeEstimatorClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- type FeeEstimatorClient_BatchCallContext_Call
- func (_c *FeeEstimatorClient_BatchCallContext_Call) Return(_a0 error) *FeeEstimatorClient_BatchCallContext_Call
- func (_c *FeeEstimatorClient_BatchCallContext_Call) Run(run func(ctx context.Context, b []rpc.BatchElem)) *FeeEstimatorClient_BatchCallContext_Call
- func (_c *FeeEstimatorClient_BatchCallContext_Call) RunAndReturn(run func(context.Context, []rpc.BatchElem) error) *FeeEstimatorClient_BatchCallContext_Call
- type FeeEstimatorClient_CallContext_Call
- func (_c *FeeEstimatorClient_CallContext_Call) Return(_a0 error) *FeeEstimatorClient_CallContext_Call
- func (_c *FeeEstimatorClient_CallContext_Call) Run(...) *FeeEstimatorClient_CallContext_Call
- func (_c *FeeEstimatorClient_CallContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *FeeEstimatorClient_CallContext_Call
- type FeeEstimatorClient_CallContract_Call
- func (_c *FeeEstimatorClient_CallContract_Call) Return(_a0 []byte, _a1 error) *FeeEstimatorClient_CallContract_Call
- func (_c *FeeEstimatorClient_CallContract_Call) Run(run func(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int)) *FeeEstimatorClient_CallContract_Call
- func (_c *FeeEstimatorClient_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *FeeEstimatorClient_CallContract_Call
- type FeeEstimatorClient_EstimateGas_Call
- func (_c *FeeEstimatorClient_EstimateGas_Call) Return(_a0 uint64, _a1 error) *FeeEstimatorClient_EstimateGas_Call
- func (_c *FeeEstimatorClient_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *FeeEstimatorClient_EstimateGas_Call
- func (_c *FeeEstimatorClient_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *FeeEstimatorClient_EstimateGas_Call
- type FeeEstimatorClient_Expecter
- func (_e *FeeEstimatorClient_Expecter) BatchCallContext(ctx interface{}, b interface{}) *FeeEstimatorClient_BatchCallContext_Call
- func (_e *FeeEstimatorClient_Expecter) CallContext(ctx interface{}, result interface{}, method interface{}, args ...interface{}) *FeeEstimatorClient_CallContext_Call
- func (_e *FeeEstimatorClient_Expecter) CallContract(ctx interface{}, msg interface{}, blockNumber interface{}) *FeeEstimatorClient_CallContract_Call
- func (_e *FeeEstimatorClient_Expecter) EstimateGas(ctx interface{}, call interface{}) *FeeEstimatorClient_EstimateGas_Call
- func (_e *FeeEstimatorClient_Expecter) FeeHistory(ctx interface{}, blockCount interface{}, lastBlock interface{}, ...) *FeeEstimatorClient_FeeHistory_Call
- func (_e *FeeEstimatorClient_Expecter) HeadByNumber(ctx interface{}, n interface{}) *FeeEstimatorClient_HeadByNumber_Call
- func (_e *FeeEstimatorClient_Expecter) SuggestGasPrice(ctx interface{}) *FeeEstimatorClient_SuggestGasPrice_Call
- type FeeEstimatorClient_FeeHistory_Call
- func (_c *FeeEstimatorClient_FeeHistory_Call) Return(feeHistory *ethereum.FeeHistory, err error) *FeeEstimatorClient_FeeHistory_Call
- func (_c *FeeEstimatorClient_FeeHistory_Call) Run(run func(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...)) *FeeEstimatorClient_FeeHistory_Call
- func (_c *FeeEstimatorClient_FeeHistory_Call) RunAndReturn(...) *FeeEstimatorClient_FeeHistory_Call
- type FeeEstimatorClient_HeadByNumber_Call
- func (_c *FeeEstimatorClient_HeadByNumber_Call) Return(_a0 *types.Head, _a1 error) *FeeEstimatorClient_HeadByNumber_Call
- func (_c *FeeEstimatorClient_HeadByNumber_Call) Run(run func(ctx context.Context, n *big.Int)) *FeeEstimatorClient_HeadByNumber_Call
- func (_c *FeeEstimatorClient_HeadByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Head, error)) *FeeEstimatorClient_HeadByNumber_Call
- type FeeEstimatorClient_SuggestGasPrice_Call
- func (_c *FeeEstimatorClient_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *FeeEstimatorClient_SuggestGasPrice_Call
- func (_c *FeeEstimatorClient_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *FeeEstimatorClient_SuggestGasPrice_Call
- func (_c *FeeEstimatorClient_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *FeeEstimatorClient_SuggestGasPrice_Call
- type FeeHistoryEstimatorClient
- func (_m *FeeHistoryEstimatorClient) EXPECT() *FeeHistoryEstimatorClient_Expecter
- func (_m *FeeHistoryEstimatorClient) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*ethereum.FeeHistory, error)
- func (_m *FeeHistoryEstimatorClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- type FeeHistoryEstimatorClient_Expecter
- type FeeHistoryEstimatorClient_FeeHistory_Call
- func (_c *FeeHistoryEstimatorClient_FeeHistory_Call) Return(feeHistory *ethereum.FeeHistory, err error) *FeeHistoryEstimatorClient_FeeHistory_Call
- func (_c *FeeHistoryEstimatorClient_FeeHistory_Call) Run(run func(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...)) *FeeHistoryEstimatorClient_FeeHistory_Call
- func (_c *FeeHistoryEstimatorClient_FeeHistory_Call) RunAndReturn(...) *FeeHistoryEstimatorClient_FeeHistory_Call
- type FeeHistoryEstimatorClient_SuggestGasPrice_Call
- func (_c *FeeHistoryEstimatorClient_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *FeeHistoryEstimatorClient_SuggestGasPrice_Call
- func (_c *FeeHistoryEstimatorClient_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *FeeHistoryEstimatorClient_SuggestGasPrice_Call
- func (_c *FeeHistoryEstimatorClient_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *FeeHistoryEstimatorClient_SuggestGasPrice_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvmEstimator ¶
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
type EvmEstimator_BumpDynamicFee_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 (_c *EvmEstimator_BumpDynamicFee_Call) Return(bumped gas.DynamicFee, err error) *EvmEstimator_BumpDynamicFee_Call
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 ¶
func (_c *EvmEstimator_BumpDynamicFee_Call) RunAndReturn(run func(context.Context, gas.DynamicFee, *assets.Wei, []gas.EvmPriorAttempt) (gas.DynamicFee, error)) *EvmEstimator_BumpDynamicFee_Call
type EvmEstimator_BumpLegacyGas_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 ¶
func (_c *EvmEstimator_BumpLegacyGas_Call) RunAndReturn(run func(context.Context, *assets.Wei, uint64, *assets.Wei, []gas.EvmPriorAttempt) (*assets.Wei, uint64, error)) *EvmEstimator_BumpLegacyGas_Call
type EvmEstimator_Close_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 (_c *EvmEstimator_Close_Call) Return(_a0 error) *EvmEstimator_Close_Call
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 ¶
func (_e *EvmEstimator_Expecter) Close() *EvmEstimator_Close_Call
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 ¶
func (_e *EvmEstimator_Expecter) HealthReport() *EvmEstimator_HealthReport_Call
HealthReport is a helper method to define mock.On call
func (*EvmEstimator_Expecter) L1Oracle ¶
func (_e *EvmEstimator_Expecter) L1Oracle() *EvmEstimator_L1Oracle_Call
L1Oracle is a helper method to define mock.On call
func (*EvmEstimator_Expecter) Name ¶
func (_e *EvmEstimator_Expecter) Name() *EvmEstimator_Name_Call
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 ¶
func (_e *EvmEstimator_Expecter) Ready() *EvmEstimator_Ready_Call
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 ¶
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 (_c *EvmEstimator_GetDynamicFee_Call) Return(fee gas.DynamicFee, err error) *EvmEstimator_GetDynamicFee_Call
func (*EvmEstimator_GetDynamicFee_Call) Run ¶
func (_c *EvmEstimator_GetDynamicFee_Call) Run(run func(ctx context.Context, maxGasPriceWei *assets.Wei)) *EvmEstimator_GetDynamicFee_Call
func (*EvmEstimator_GetDynamicFee_Call) RunAndReturn ¶
func (_c *EvmEstimator_GetDynamicFee_Call) RunAndReturn(run func(context.Context, *assets.Wei) (gas.DynamicFee, error)) *EvmEstimator_GetDynamicFee_Call
type EvmEstimator_GetLegacyGas_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
type EvmEstimator_HealthReport_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 (_c *EvmEstimator_HealthReport_Call) Return(_a0 map[string]error) *EvmEstimator_HealthReport_Call
func (*EvmEstimator_HealthReport_Call) Run ¶
func (_c *EvmEstimator_HealthReport_Call) Run(run func()) *EvmEstimator_HealthReport_Call
func (*EvmEstimator_HealthReport_Call) RunAndReturn ¶
func (_c *EvmEstimator_HealthReport_Call) RunAndReturn(run func() map[string]error) *EvmEstimator_HealthReport_Call
type EvmEstimator_L1Oracle_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 (_c *EvmEstimator_L1Oracle_Call) Return(_a0 rollups.L1Oracle) *EvmEstimator_L1Oracle_Call
func (*EvmEstimator_L1Oracle_Call) Run ¶
func (_c *EvmEstimator_L1Oracle_Call) Run(run func()) *EvmEstimator_L1Oracle_Call
func (*EvmEstimator_L1Oracle_Call) RunAndReturn ¶
func (_c *EvmEstimator_L1Oracle_Call) RunAndReturn(run func() rollups.L1Oracle) *EvmEstimator_L1Oracle_Call
type EvmEstimator_Name_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 (_c *EvmEstimator_Name_Call) Return(_a0 string) *EvmEstimator_Name_Call
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 ¶
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 (_c *EvmEstimator_OnNewLongestChain_Call) Return() *EvmEstimator_OnNewLongestChain_Call
func (*EvmEstimator_OnNewLongestChain_Call) Run ¶
func (_c *EvmEstimator_OnNewLongestChain_Call) Run(run func(ctx context.Context, head *types.Head)) *EvmEstimator_OnNewLongestChain_Call
func (*EvmEstimator_OnNewLongestChain_Call) RunAndReturn ¶
func (_c *EvmEstimator_OnNewLongestChain_Call) RunAndReturn(run func(context.Context, *types.Head)) *EvmEstimator_OnNewLongestChain_Call
type EvmEstimator_Ready_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 (_c *EvmEstimator_Ready_Call) Return(_a0 error) *EvmEstimator_Ready_Call
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 ¶
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 (_c *EvmEstimator_Start_Call) Return(_a0 error) *EvmEstimator_Start_Call
func (*EvmEstimator_Start_Call) Run ¶
func (_c *EvmEstimator_Start_Call) Run(run func(_a0 context.Context)) *EvmEstimator_Start_Call
func (*EvmEstimator_Start_Call) RunAndReturn ¶
func (_c *EvmEstimator_Start_Call) RunAndReturn(run func(context.Context) error) *EvmEstimator_Start_Call
type EvmFeeEstimator ¶
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 (_m *EvmFeeEstimator) EXPECT() *EvmFeeEstimator_Expecter
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
type EvmFeeEstimator_BumpFee_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 ¶
func (_c *EvmFeeEstimator_BumpFee_Call) RunAndReturn(run func(context.Context, gas.EvmFee, uint64, *assets.Wei, []gas.EvmPriorAttempt) (gas.EvmFee, uint64, error)) *EvmFeeEstimator_BumpFee_Call
type EvmFeeEstimator_Close_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 (_c *EvmFeeEstimator_Close_Call) Return(_a0 error) *EvmFeeEstimator_Close_Call
func (*EvmFeeEstimator_Close_Call) Run ¶
func (_c *EvmFeeEstimator_Close_Call) Run(run func()) *EvmFeeEstimator_Close_Call
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 ¶
func (_e *EvmFeeEstimator_Expecter) Close() *EvmFeeEstimator_Close_Call
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 ¶
func (_e *EvmFeeEstimator_Expecter) HealthReport() *EvmFeeEstimator_HealthReport_Call
HealthReport is a helper method to define mock.On call
func (*EvmFeeEstimator_Expecter) L1Oracle ¶
func (_e *EvmFeeEstimator_Expecter) L1Oracle() *EvmFeeEstimator_L1Oracle_Call
L1Oracle is a helper method to define mock.On call
func (*EvmFeeEstimator_Expecter) Name ¶
func (_e *EvmFeeEstimator_Expecter) Name() *EvmFeeEstimator_Name_Call
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 ¶
func (_e *EvmFeeEstimator_Expecter) Ready() *EvmFeeEstimator_Ready_Call
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 ¶
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
type EvmFeeEstimator_GetMaxCost_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 (_c *EvmFeeEstimator_GetMaxCost_Call) Return(_a0 *big.Int, _a1 error) *EvmFeeEstimator_GetMaxCost_Call
type EvmFeeEstimator_HealthReport_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 (_c *EvmFeeEstimator_HealthReport_Call) Return(_a0 map[string]error) *EvmFeeEstimator_HealthReport_Call
func (*EvmFeeEstimator_HealthReport_Call) Run ¶
func (_c *EvmFeeEstimator_HealthReport_Call) Run(run func()) *EvmFeeEstimator_HealthReport_Call
func (*EvmFeeEstimator_HealthReport_Call) RunAndReturn ¶
func (_c *EvmFeeEstimator_HealthReport_Call) RunAndReturn(run func() map[string]error) *EvmFeeEstimator_HealthReport_Call
type EvmFeeEstimator_L1Oracle_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 (_c *EvmFeeEstimator_L1Oracle_Call) Return(_a0 rollups.L1Oracle) *EvmFeeEstimator_L1Oracle_Call
func (*EvmFeeEstimator_L1Oracle_Call) Run ¶
func (_c *EvmFeeEstimator_L1Oracle_Call) Run(run func()) *EvmFeeEstimator_L1Oracle_Call
func (*EvmFeeEstimator_L1Oracle_Call) RunAndReturn ¶
func (_c *EvmFeeEstimator_L1Oracle_Call) RunAndReturn(run func() rollups.L1Oracle) *EvmFeeEstimator_L1Oracle_Call
type EvmFeeEstimator_Name_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 (_c *EvmFeeEstimator_Name_Call) Return(_a0 string) *EvmFeeEstimator_Name_Call
func (*EvmFeeEstimator_Name_Call) Run ¶
func (_c *EvmFeeEstimator_Name_Call) Run(run func()) *EvmFeeEstimator_Name_Call
func (*EvmFeeEstimator_Name_Call) RunAndReturn ¶
func (_c *EvmFeeEstimator_Name_Call) RunAndReturn(run func() string) *EvmFeeEstimator_Name_Call
type EvmFeeEstimator_OnNewLongestChain_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 (_c *EvmFeeEstimator_OnNewLongestChain_Call) Return() *EvmFeeEstimator_OnNewLongestChain_Call
func (*EvmFeeEstimator_OnNewLongestChain_Call) Run ¶
func (_c *EvmFeeEstimator_OnNewLongestChain_Call) Run(run func(ctx context.Context, head *types.Head)) *EvmFeeEstimator_OnNewLongestChain_Call
func (*EvmFeeEstimator_OnNewLongestChain_Call) RunAndReturn ¶
func (_c *EvmFeeEstimator_OnNewLongestChain_Call) RunAndReturn(run func(context.Context, *types.Head)) *EvmFeeEstimator_OnNewLongestChain_Call
type EvmFeeEstimator_Ready_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 (_c *EvmFeeEstimator_Ready_Call) Return(_a0 error) *EvmFeeEstimator_Ready_Call
func (*EvmFeeEstimator_Ready_Call) Run ¶
func (_c *EvmFeeEstimator_Ready_Call) Run(run func()) *EvmFeeEstimator_Ready_Call
func (*EvmFeeEstimator_Ready_Call) RunAndReturn ¶
func (_c *EvmFeeEstimator_Ready_Call) RunAndReturn(run func() error) *EvmFeeEstimator_Ready_Call
type EvmFeeEstimator_Start_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 (_c *EvmFeeEstimator_Start_Call) Return(_a0 error) *EvmFeeEstimator_Start_Call
func (*EvmFeeEstimator_Start_Call) Run ¶
func (_c *EvmFeeEstimator_Start_Call) Run(run func(_a0 context.Context)) *EvmFeeEstimator_Start_Call
func (*EvmFeeEstimator_Start_Call) RunAndReturn ¶
func (_c *EvmFeeEstimator_Start_Call) RunAndReturn(run func(context.Context) error) *EvmFeeEstimator_Start_Call
type FeeEstimatorClient ¶
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 ¶
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 (_m *FeeEstimatorClient) EXPECT() *FeeEstimatorClient_Expecter
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 ¶
HeadByNumber provides a mock function with given fields: ctx, n
func (*FeeEstimatorClient) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
type FeeEstimatorClient_BatchCallContext_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 (_c *FeeEstimatorClient_BatchCallContext_Call) Return(_a0 error) *FeeEstimatorClient_BatchCallContext_Call
func (*FeeEstimatorClient_BatchCallContext_Call) Run ¶
func (_c *FeeEstimatorClient_BatchCallContext_Call) Run(run func(ctx context.Context, b []rpc.BatchElem)) *FeeEstimatorClient_BatchCallContext_Call
func (*FeeEstimatorClient_BatchCallContext_Call) RunAndReturn ¶
func (_c *FeeEstimatorClient_BatchCallContext_Call) RunAndReturn(run func(context.Context, []rpc.BatchElem) error) *FeeEstimatorClient_BatchCallContext_Call
type FeeEstimatorClient_CallContext_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 (_c *FeeEstimatorClient_CallContext_Call) Return(_a0 error) *FeeEstimatorClient_CallContext_Call
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 ¶
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 (_c *FeeEstimatorClient_CallContract_Call) Return(_a0 []byte, _a1 error) *FeeEstimatorClient_CallContract_Call
func (*FeeEstimatorClient_CallContract_Call) Run ¶
func (_c *FeeEstimatorClient_CallContract_Call) Run(run func(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int)) *FeeEstimatorClient_CallContract_Call
func (*FeeEstimatorClient_CallContract_Call) RunAndReturn ¶
func (_c *FeeEstimatorClient_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *FeeEstimatorClient_CallContract_Call
type FeeEstimatorClient_EstimateGas_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 (_c *FeeEstimatorClient_EstimateGas_Call) Return(_a0 uint64, _a1 error) *FeeEstimatorClient_EstimateGas_Call
func (*FeeEstimatorClient_EstimateGas_Call) Run ¶
func (_c *FeeEstimatorClient_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *FeeEstimatorClient_EstimateGas_Call
func (*FeeEstimatorClient_EstimateGas_Call) RunAndReturn ¶
func (_c *FeeEstimatorClient_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *FeeEstimatorClient_EstimateGas_Call
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 ¶
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 (_c *FeeEstimatorClient_FeeHistory_Call) Return(feeHistory *ethereum.FeeHistory, err error) *FeeEstimatorClient_FeeHistory_Call
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 ¶
func (_c *FeeEstimatorClient_FeeHistory_Call) RunAndReturn(run func(context.Context, uint64, *big.Int, []float64) (*ethereum.FeeHistory, error)) *FeeEstimatorClient_FeeHistory_Call
type FeeEstimatorClient_HeadByNumber_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 (_c *FeeEstimatorClient_HeadByNumber_Call) Return(_a0 *types.Head, _a1 error) *FeeEstimatorClient_HeadByNumber_Call
func (*FeeEstimatorClient_HeadByNumber_Call) Run ¶
func (_c *FeeEstimatorClient_HeadByNumber_Call) Run(run func(ctx context.Context, n *big.Int)) *FeeEstimatorClient_HeadByNumber_Call
func (*FeeEstimatorClient_HeadByNumber_Call) RunAndReturn ¶
func (_c *FeeEstimatorClient_HeadByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Head, error)) *FeeEstimatorClient_HeadByNumber_Call
type FeeEstimatorClient_SuggestGasPrice_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 (_c *FeeEstimatorClient_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *FeeEstimatorClient_SuggestGasPrice_Call
func (*FeeEstimatorClient_SuggestGasPrice_Call) Run ¶
func (_c *FeeEstimatorClient_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *FeeEstimatorClient_SuggestGasPrice_Call
func (*FeeEstimatorClient_SuggestGasPrice_Call) RunAndReturn ¶
func (_c *FeeEstimatorClient_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *FeeEstimatorClient_SuggestGasPrice_Call
type FeeHistoryEstimatorClient ¶
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 (_m *FeeHistoryEstimatorClient) EXPECT() *FeeHistoryEstimatorClient_Expecter
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 ¶
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 ¶
func (_e *FeeHistoryEstimatorClient_Expecter) SuggestGasPrice(ctx interface{}) *FeeHistoryEstimatorClient_SuggestGasPrice_Call
SuggestGasPrice is a helper method to define mock.On call
- ctx context.Context
type FeeHistoryEstimatorClient_FeeHistory_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 (_c *FeeHistoryEstimatorClient_FeeHistory_Call) Return(feeHistory *ethereum.FeeHistory, err error) *FeeHistoryEstimatorClient_FeeHistory_Call
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 ¶
func (_c *FeeHistoryEstimatorClient_FeeHistory_Call) RunAndReturn(run func(context.Context, uint64, *big.Int, []float64) (*ethereum.FeeHistory, error)) *FeeHistoryEstimatorClient_FeeHistory_Call
type FeeHistoryEstimatorClient_SuggestGasPrice_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 (_c *FeeHistoryEstimatorClient_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *FeeHistoryEstimatorClient_SuggestGasPrice_Call
func (*FeeHistoryEstimatorClient_SuggestGasPrice_Call) Run ¶
func (_c *FeeHistoryEstimatorClient_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *FeeHistoryEstimatorClient_SuggestGasPrice_Call
func (*FeeHistoryEstimatorClient_SuggestGasPrice_Call) RunAndReturn ¶
func (_c *FeeHistoryEstimatorClient_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *FeeHistoryEstimatorClient_SuggestGasPrice_Call