mocks

package
v0.0.0-...-2c9fc41 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/NethermindEth/near-sffl/operator (interfaces: AggregatorRpcClienter)

Generated by this command:

mockgen -destination=./mocks/rpc_client.go -package=mocks github.com/NethermindEth/near-sffl/operator AggregatorRpcClienter

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAggregatorRpcClienter

type MockAggregatorRpcClienter struct {
	// contains filtered or unexported fields
}

MockAggregatorRpcClienter is a mock of AggregatorRpcClienter interface.

func NewMockAggregatorRpcClienter

func NewMockAggregatorRpcClienter(ctrl *gomock.Controller) *MockAggregatorRpcClienter

NewMockAggregatorRpcClienter creates a new mock instance.

func (*MockAggregatorRpcClienter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAggregatorRpcClienter) EnableMetrics

func (m *MockAggregatorRpcClienter) EnableMetrics(arg0 *prometheus.Registry) error

EnableMetrics mocks base method.

func (*MockAggregatorRpcClienter) GetAggregatedCheckpointMessages

func (m *MockAggregatorRpcClienter) GetAggregatedCheckpointMessages(arg0, arg1 uint64) (*messages.CheckpointMessages, error)

GetAggregatedCheckpointMessages mocks base method.

func (*MockAggregatorRpcClienter) SendSignedCheckpointTaskResponseToAggregator

func (m *MockAggregatorRpcClienter) SendSignedCheckpointTaskResponseToAggregator(arg0 *messages.SignedCheckpointTaskResponse)

SendSignedCheckpointTaskResponseToAggregator mocks base method.

func (*MockAggregatorRpcClienter) SendSignedOperatorSetUpdateToAggregator

func (m *MockAggregatorRpcClienter) SendSignedOperatorSetUpdateToAggregator(arg0 *messages.SignedOperatorSetUpdateMessage)

SendSignedOperatorSetUpdateToAggregator mocks base method.

func (*MockAggregatorRpcClienter) SendSignedStateRootUpdateToAggregator

func (m *MockAggregatorRpcClienter) SendSignedStateRootUpdateToAggregator(arg0 *messages.SignedStateRootUpdateMessage)

SendSignedStateRootUpdateToAggregator mocks base method.

type MockAggregatorRpcClienterMockRecorder

type MockAggregatorRpcClienterMockRecorder struct {
	// contains filtered or unexported fields
}

MockAggregatorRpcClienterMockRecorder is the mock recorder for MockAggregatorRpcClienter.

func (*MockAggregatorRpcClienterMockRecorder) EnableMetrics

func (mr *MockAggregatorRpcClienterMockRecorder) EnableMetrics(arg0 any) *gomock.Call

EnableMetrics indicates an expected call of EnableMetrics.

func (*MockAggregatorRpcClienterMockRecorder) GetAggregatedCheckpointMessages

func (mr *MockAggregatorRpcClienterMockRecorder) GetAggregatedCheckpointMessages(arg0, arg1 any) *gomock.Call

GetAggregatedCheckpointMessages indicates an expected call of GetAggregatedCheckpointMessages.

func (*MockAggregatorRpcClienterMockRecorder) SendSignedCheckpointTaskResponseToAggregator

func (mr *MockAggregatorRpcClienterMockRecorder) SendSignedCheckpointTaskResponseToAggregator(arg0 any) *gomock.Call

SendSignedCheckpointTaskResponseToAggregator indicates an expected call of SendSignedCheckpointTaskResponseToAggregator.

func (*MockAggregatorRpcClienterMockRecorder) SendSignedOperatorSetUpdateToAggregator

func (mr *MockAggregatorRpcClienterMockRecorder) SendSignedOperatorSetUpdateToAggregator(arg0 any) *gomock.Call

SendSignedOperatorSetUpdateToAggregator indicates an expected call of SendSignedOperatorSetUpdateToAggregator.

func (*MockAggregatorRpcClienterMockRecorder) SendSignedStateRootUpdateToAggregator

func (mr *MockAggregatorRpcClienterMockRecorder) SendSignedStateRootUpdateToAggregator(arg0 any) *gomock.Call

SendSignedStateRootUpdateToAggregator indicates an expected call of SendSignedStateRootUpdateToAggregator.

type MockAttestor

type MockAttestor struct {
	// contains filtered or unexported fields
}

func NewMockAttestor

func NewMockAttestor(blsKeypair *bls.KeyPair, operatorId eigentypes.OperatorId) *MockAttestor

func (*MockAttestor) Close

func (mockAttestor *MockAttestor) Close() error

func (*MockAttestor) EnableMetrics

func (mockAttestor *MockAttestor) EnableMetrics(_ *prometheus.Registry) error

func (*MockAttestor) GetSignedRootC

func (mockAttestor *MockAttestor) GetSignedRootC() <-chan messages.SignedStateRootUpdateMessage

func (*MockAttestor) MockGetConsumer

func (mockAttestor *MockAttestor) MockGetConsumer() *MockConsumer

func (*MockAttestor) Start

func (mockAttestor *MockAttestor) Start(ctx context.Context) error

type MockConsumer

type MockConsumer struct {
	// contains filtered or unexported fields
}

func NewMockConsumer

func NewMockConsumer() *MockConsumer

func (*MockConsumer) Close

func (c *MockConsumer) Close() error

func (*MockConsumer) GetBlockStream

func (c *MockConsumer) GetBlockStream() <-chan consumer.BlockData

func (*MockConsumer) MockReceiveBlockData

func (c *MockConsumer) MockReceiveBlockData(data consumer.BlockData)

func (*MockConsumer) Reconnect

func (c *MockConsumer) Reconnect(addr string, ctx context.Context)

func (*MockConsumer) ResetChannel

func (c *MockConsumer) ResetChannel(conn *rmq.Connection, ctx context.Context) bool

Jump to

Keyboard shortcuts

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