Documentation ¶
Index ¶
- type Config
- type ETHClient
- 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) 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 *evmtypes.Head)
- func (_m *EvmEstimator) Ready() error
- func (_m *EvmEstimator) Start(_a0 context.Context) error
- 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) 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 *evmtypes.Head)
- func (_m *EvmFeeEstimator) Ready() error
- func (_m *EvmFeeEstimator) Start(_a0 context.Context) error
- 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) ConfiguredChainID() *big.Int
- func (_m *FeeEstimatorClient) HeadByNumber(ctx context.Context, n *big.Int) (*types.Head, error)
- type RPCClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is an autogenerated mock type for the Config type
func NewConfig ¶
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) FinalityDepth ¶ added in v2.3.0
FinalityDepth provides a mock function with given fields:
func (*Config) FinalityTagEnabled ¶ added in v2.4.0
FinalityTagEnabled provides a mock function with given fields:
type ETHClient ¶
ETHClient is an autogenerated mock type for the ethClient type
func NewETHClient ¶
NewETHClient creates a new instance of ETHClient. 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.
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 given fields:
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:
type EvmFeeEstimator ¶ added in v2.3.0
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) 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:
type FeeEstimatorClient ¶ added in v2.12.0
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
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) HeadByNumber ¶ added in v2.12.0
HeadByNumber provides a mock function with given fields: ctx, n
type RPCClient ¶
RPCClient is an autogenerated mock type for the rpcClient type
func NewRPCClient ¶
NewRPCClient creates a new instance of RPCClient. 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.