mocks

package
v1.10.17 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 (*Chain) Client

func (_m *Chain) Client() eth.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) HeadBroadcaster

func (_m *Chain) HeadBroadcaster() types.HeadBroadcaster

HeadBroadcaster provides a mock function with given fields:

func (*Chain) HeadTracker

func (_m *Chain) HeadTracker() types.Tracker

HeadTracker provides a mock function with given fields:

func (*Chain) Healthy

func (_m *Chain) Healthy() error

Healthy 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) LogBroadcaster

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

LogBroadcaster 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) Ready

func (_m *Chain) Ready() error

Ready provides a mock function with given fields:

func (*Chain) Start

func (_m *Chain) Start() error

Start provides a mock function with given fields:

func (*Chain) TxManager

func (_m *Chain) TxManager() bulletprooftxmanager.TxManager

TxManager provides a mock function with given fields:

type ChainSet

type ChainSet struct {
	mock.Mock
}

ChainSet is an autogenerated mock type for the ChainSet type

func (*ChainSet) Add

func (_m *ChainSet) Add(id *big.Int, config types.ChainCfg) (types.Chain, error)

Add provides a mock function with given fields: id, config

func (*ChainSet) ChainCount

func (_m *ChainSet) ChainCount() int

ChainCount provides a mock function with given fields:

func (*ChainSet) Chains

func (_m *ChainSet) Chains() []evm.Chain

Chains provides a mock function with given fields:

func (*ChainSet) Close

func (_m *ChainSet) Close() error

Close provides a mock function with given fields:

func (*ChainSet) Configure

func (_m *ChainSet) Configure(id *big.Int, enabled bool, config types.ChainCfg) (types.Chain, error)

Configure provides a mock function with given fields: id, enabled, config

func (*ChainSet) Default

func (_m *ChainSet) Default() (evm.Chain, error)

Default provides a mock function with given fields:

func (*ChainSet) Get

func (_m *ChainSet) Get(id *big.Int) (evm.Chain, error)

Get provides a mock function with given fields: id

func (*ChainSet) Healthy

func (_m *ChainSet) Healthy() error

Healthy provides a mock function with given fields:

func (*ChainSet) ORM

func (_m *ChainSet) ORM() types.ORM

ORM provides a mock function with given fields:

func (*ChainSet) Ready

func (_m *ChainSet) Ready() error

Ready provides a mock function with given fields:

func (*ChainSet) Remove

func (_m *ChainSet) Remove(id *big.Int) error

Remove provides a mock function with given fields: id

func (*ChainSet) Start

func (_m *ChainSet) Start() error

Start provides a mock function with given fields:

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func (*ORM) Chain

func (_m *ORM) Chain(id utils.Big) (types.Chain, error)

Chain provides a mock function with given fields: id

func (*ORM) Chains

func (_m *ORM) Chains(offset int, limit int) ([]types.Chain, int, error)

Chains provides a mock function with given fields: offset, limit

func (*ORM) Clear

func (_m *ORM) Clear(chainID *big.Int, key string) error

Clear provides a mock function with given fields: chainID, key

func (*ORM) CreateChain

func (_m *ORM) CreateChain(id utils.Big, config types.ChainCfg) (types.Chain, error)

CreateChain provides a mock function with given fields: id, config

func (*ORM) CreateNode

func (_m *ORM) CreateNode(data types.NewNode) (types.Node, error)

CreateNode provides a mock function with given fields: data

func (*ORM) DeleteChain

func (_m *ORM) DeleteChain(id utils.Big) error

DeleteChain provides a mock function with given fields: id

func (*ORM) DeleteNode

func (_m *ORM) DeleteNode(id int64) error

DeleteNode provides a mock function with given fields: id

func (*ORM) EnabledChainsWithNodes

func (_m *ORM) EnabledChainsWithNodes() ([]types.Chain, error)

EnabledChainsWithNodes provides a mock function with given fields:

func (*ORM) Nodes

func (_m *ORM) Nodes(offset int, limit int) ([]types.Node, int, error)

Nodes provides a mock function with given fields: offset, limit

func (*ORM) NodesForChain

func (_m *ORM) NodesForChain(chainID utils.Big, offset int, limit int) ([]types.Node, int, error)

NodesForChain provides a mock function with given fields: chainID, offset, limit

func (*ORM) StoreString

func (_m *ORM) StoreString(chainID *big.Int, key string, val string) error

StoreString provides a mock function with given fields: chainID, key, val

func (*ORM) UpdateChain

func (_m *ORM) UpdateChain(id utils.Big, enabled bool, config types.ChainCfg) (types.Chain, error)

UpdateChain provides a mock function with given fields: id, enabled, config

Jump to

Keyboard shortcuts

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