mocks

package
v2.14.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type L1Oracle

type L1Oracle struct {
	mock.Mock
}

L1Oracle is an autogenerated mock type for the L1Oracle type

func NewL1Oracle

func NewL1Oracle(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1Oracle

NewL1Oracle creates a new instance of L1Oracle. 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 (*L1Oracle) Close

func (_m *L1Oracle) Close() error

Close provides a mock function with given fields:

func (*L1Oracle) GasPrice

func (_m *L1Oracle) GasPrice(ctx context.Context) (*assets.Wei, error)

GasPrice provides a mock function with given fields: ctx

func (*L1Oracle) GetGasCost added in v2.10.0

func (_m *L1Oracle) GetGasCost(ctx context.Context, tx *types.Transaction, blockNum *big.Int) (*assets.Wei, error)

GetGasCost provides a mock function with given fields: ctx, tx, blockNum

func (*L1Oracle) HealthReport

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

HealthReport provides a mock function with given fields:

func (*L1Oracle) Name

func (_m *L1Oracle) Name() string

Name provides a mock function with given fields:

func (*L1Oracle) Ready

func (_m *L1Oracle) Ready() error

Ready provides a mock function with given fields:

func (*L1Oracle) Start

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

Start provides a mock function with given fields: _a0

type L1OracleClient added in v2.12.0

type L1OracleClient struct {
	mock.Mock
}

L1OracleClient is an autogenerated mock type for the l1OracleClient type

func NewL1OracleClient added in v2.12.0

func NewL1OracleClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1OracleClient

NewL1OracleClient creates a new instance of L1OracleClient. 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 (*L1OracleClient) BatchCallContext added in v2.12.0

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

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

func (*L1OracleClient) CallContract added in v2.12.0

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

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

Jump to

Keyboard shortcuts

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