Documentation
¶
Index ¶
- type MockRelayer
- func (m MockRelayer) Close() error
- func (m MockRelayer) GetChainStatus(ctx context.Context) (commontypes.ChainStatus, error)
- func (m MockRelayer) HealthReport() map[string]error
- func (m MockRelayer) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) (stats []commontypes.NodeStatus, nextPageToken string, total int, err error)
- func (m MockRelayer) Name() string
- func (m MockRelayer) NewConfigProvider(ctx context.Context, args commontypes.RelayArgs) (commontypes.ConfigProvider, error)
- func (m MockRelayer) NewContractReader(_ context.Context, _ []byte) (commontypes.ContractReader, error)
- func (m MockRelayer) NewLLOProvider(ctx context.Context, rargs commontypes.RelayArgs, pargs commontypes.PluginArgs) (commontypes.LLOProvider, error)
- func (m MockRelayer) NewPluginProvider(ctx context.Context, args commontypes.RelayArgs, args2 commontypes.PluginArgs) (commontypes.PluginProvider, error)
- func (m MockRelayer) Ready() error
- func (m MockRelayer) Start(ctx context.Context) error
- func (m MockRelayer) Transact(ctx context.Context, from, to string, amount *big.Int, balanceCheck bool) error
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 (m MockRelayer) NewLLOProvider(ctx context.Context, rargs commontypes.RelayArgs, pargs commontypes.PluginArgs) (commontypes.LLOProvider, error)
func (MockRelayer) NewPluginProvider ¶
func (m MockRelayer) NewPluginProvider(ctx context.Context, args commontypes.RelayArgs, args2 commontypes.PluginArgs) (commontypes.PluginProvider, error)
func (MockRelayer) Ready ¶
func (m MockRelayer) Ready() error
Click to show internal directories.
Click to hide internal directories.