mocks

package
v2.8.2-clf-20240123 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	mock.Mock
}

Chain is an autogenerated mock type for the Chain type

func NewChain

func NewChain(t interface {
	mock.TestingT
	Cleanup(func())
}) *Chain

NewChain creates a new instance of Chain. 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 (*Chain) BalanceMonitor

func (_m *Chain) BalanceMonitor() monitor.BalanceMonitor

BalanceMonitor provides a mock function with given fields:

func (*Chain) Client

func (_m *Chain) Client() client.Client

Client provides a mock function with given fields:

func (*Chain) Close

func (_m *Chain) Close() error

Close provides a mock function with given fields:

func (*Chain) Config

func (_m *Chain) Config() config.ChainScopedConfig

Config provides a mock function with given fields:

func (*Chain) GasEstimator

func (_m *Chain) GasEstimator() gas.EvmFeeEstimator

GasEstimator provides a mock function with given fields:

func (*Chain) GetChainStatus

func (_m *Chain) GetChainStatus(ctx context.Context) (types.ChainStatus, error)

GetChainStatus provides a mock function with given fields: ctx

func (*Chain) HeadBroadcaster

func (_m *Chain) HeadBroadcaster() commontypes.HeadBroadcaster[*evmtypes.Head, common.Hash]

HeadBroadcaster provides a mock function with given fields:

func (*Chain) HeadTracker

func (_m *Chain) HeadTracker() commontypes.HeadTracker[*evmtypes.Head, common.Hash]

HeadTracker provides a mock function with given fields:

func (*Chain) HealthReport

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

HealthReport provides a mock function with given fields:

func (*Chain) ID

func (_m *Chain) ID() *big.Int

ID provides a mock function with given fields:

func (*Chain) ListNodeStatuses

func (_m *Chain) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) ([]types.NodeStatus, string, int, error)

ListNodeStatuses provides a mock function with given fields: ctx, pageSize, pageToken

func (*Chain) LogBroadcaster

func (_m *Chain) LogBroadcaster() log.Broadcaster

LogBroadcaster provides a mock function with given fields:

func (*Chain) LogPoller

func (_m *Chain) LogPoller() logpoller.LogPoller

LogPoller provides a mock function with given fields:

func (*Chain) Logger

func (_m *Chain) Logger() logger.Logger

Logger provides a mock function with given fields:

func (*Chain) Name

func (_m *Chain) Name() string

Name provides a mock function with given fields:

func (*Chain) Ready

func (_m *Chain) Ready() error

Ready provides a mock function with given fields:

func (*Chain) Start

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

Start provides a mock function with given fields: _a0

func (*Chain) Transact

func (_m *Chain) Transact(ctx context.Context, from string, to string, amount *big.Int, balanceCheck bool) error

Transact provides a mock function with given fields: ctx, from, to, amount, balanceCheck

func (*Chain) TxManager

TxManager provides a mock function with given fields:

type LegacyChainContainer

type LegacyChainContainer struct {
	mock.Mock
}

LegacyChainContainer is an autogenerated mock type for the LegacyChainContainer type

func NewLegacyChainContainer

func NewLegacyChainContainer(t interface {
	mock.TestingT
	Cleanup(func())
}) *LegacyChainContainer

NewLegacyChainContainer creates a new instance of LegacyChainContainer. 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 (*LegacyChainContainer) ChainNodeConfigs

func (_m *LegacyChainContainer) ChainNodeConfigs() types.Configs

ChainNodeConfigs provides a mock function with given fields:

func (*LegacyChainContainer) Get

Get provides a mock function with given fields: id

func (*LegacyChainContainer) Len

func (_m *LegacyChainContainer) Len() int

Len provides a mock function with given fields:

func (*LegacyChainContainer) List

func (_m *LegacyChainContainer) List(ids ...string) ([]legacyevm.Chain, error)

List provides a mock function with given fields: ids

func (*LegacyChainContainer) Slice

func (_m *LegacyChainContainer) Slice() []legacyevm.Chain

Slice provides a mock function with given fields:

Jump to

Keyboard shortcuts

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