testutils

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRelayer

type MockRelayer struct {
	ChainStatus  commontypes.ChainStatus
	NodeStatuses []commontypes.NodeStatus
}

func (MockRelayer) Close

func (m MockRelayer) Close() error

func (MockRelayer) GetChainStatus

func (m MockRelayer) GetChainStatus(ctx context.Context) (commontypes.ChainStatus, error)

func (MockRelayer) HealthReport

func (m MockRelayer) HealthReport() map[string]error

func (MockRelayer) ListNodeStatuses

func (m MockRelayer) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) (stats []commontypes.NodeStatus, nextPageToken string, total int, err error)

func (MockRelayer) Name

func (m MockRelayer) Name() string

func (MockRelayer) NewConfigProvider

func (m MockRelayer) NewConfigProvider(ctx context.Context, args commontypes.RelayArgs) (commontypes.ConfigProvider, error)

func (MockRelayer) NewContractReader added in v2.13.0

func (m MockRelayer) NewContractReader(_ context.Context, _ []byte) (commontypes.ContractReader, error)

func (MockRelayer) NewLLOProvider

func (MockRelayer) NewPluginProvider

func (MockRelayer) Ready

func (m MockRelayer) Ready() error

func (MockRelayer) Start

func (m MockRelayer) Start(ctx context.Context) error

func (MockRelayer) Transact

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

Jump to

Keyboard shortcuts

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