heimdall

package
v1.9.7-0...-4dbe343 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Overview

Package heimdall is a generated GoMock package.

Package heimdall is a generated GoMock package.

Package heimdall is a generated GoMock package.

Package heimdall is a generated GoMock package.

Package heimdall is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrShutdownDetected is returned if a shutdown was detected
	ErrShutdownDetected      = errors.New("shutdown detected")
	ErrNoResponse            = errors.New("got a nil response")
	ErrNotSuccessfulResponse = errors.New("error while fetching data from Heimdall")
	ErrNotInRejectedList     = errors.New("milestoneId doesn't exist in rejected list")
	ErrNotInMilestoneList    = errors.New("milestoneId doesn't exist in Heimdall")
	ErrNotInCheckpointList   = errors.New("checkpontId doesn't exist in Heimdall")
	ErrNotInSpanList         = errors.New("milestoneId doesn't exist in Heimdall")
	ErrServiceUnavailable    = errors.New("service unavailable")
)
View Source
var ErrCheckpointNotFound = fmt.Errorf("checkpoint not found")
View Source
var ErrEventRecordNotFound = fmt.Errorf("event record not found")
View Source
var ErrIncompleteCheckpointRange = errors.New("checkpoint range doesn't contain the start block")
View Source
var ErrIncompleteMilestoneRange = errors.New("milestone range doesn't contain the start block")

ErrIncompleteMilestoneRange happens when FetchMilestones is called with an old start block because old milestones are evicted

View Source
var ErrIncompleteSpanRange = errors.New("span range doesn't contain the start block")
View Source
var ErrMilestoneNotFound = fmt.Errorf("milestone not found")

Functions

func Fetch

func Fetch[T any](ctx context.Context, request *Request, logger log.Logger) (*T, error)

Fetch fetches response from heimdall

func FetchWithRetry

func FetchWithRetry[T any](ctx context.Context, client *Client, url *url.URL, logger log.Logger) (*T, error)

FetchWithRetry returns data from heimdall with retry

func FetchWithRetryEx

func FetchWithRetryEx[T any](
	ctx context.Context,
	client *Client,
	url *url.URL,
	isRecoverableError func(error) bool,
	logger log.Logger,
) (result *T, err error)

FetchWithRetryEx returns data from heimdall with retry

func IsBlockInLastSprintOfSpan

func IsBlockInLastSprintOfSpan(blockNum uint64, config *borcfg.BorConfig) bool

IsBlockInLastSprintOfSpan returns true if a block num is within the last sprint of a span and false otherwise.

func NewBlockReaderStore

func NewBlockReaderStore(reader reader, tx kv.Tx) blockReaderStore

func SpanEndBlockNum

func SpanEndBlockNum(spanId SpanId) uint64

SpanEndBlockNum returns the number of the last block in the given span.

Types

type Checkpoint

type Checkpoint struct {
	Id     CheckpointId
	Fields WaypointFields
}

Checkpoint defines a response object type of bor checkpoint

func (Checkpoint) CmpRange

func (c Checkpoint) CmpRange(n uint64) int

func (Checkpoint) EndBlock

func (c Checkpoint) EndBlock() *big.Int

func (Checkpoint) Length

func (c Checkpoint) Length() uint64

func (*Checkpoint) MarshalJSON

func (c *Checkpoint) MarshalJSON() ([]byte, error)

func (Checkpoint) RootHash

func (c Checkpoint) RootHash() libcommon.Hash

func (Checkpoint) StartBlock

func (c Checkpoint) StartBlock() *big.Int

func (Checkpoint) String

func (m Checkpoint) String() string

func (Checkpoint) Timestamp

func (c Checkpoint) Timestamp() uint64

func (*Checkpoint) UnmarshalJSON

func (c *Checkpoint) UnmarshalJSON(b []byte) error

type CheckpointCount

type CheckpointCount struct {
	Result int64 `json:"result"`
}

type CheckpointCountResponse

type CheckpointCountResponse struct {
	Height string          `json:"height"`
	Result CheckpointCount `json:"result"`
}

type CheckpointId

type CheckpointId uint64

func CheckpointIdAt

func CheckpointIdAt(tx kv.Tx, block uint64) (CheckpointId, error)

type CheckpointListResponse

type CheckpointListResponse struct {
	Height string      `json:"height"`
	Result Checkpoints `json:"result"`
}

type CheckpointReader

type CheckpointReader interface {
	LastCheckpointId(ctx context.Context) (CheckpointId, bool, error)
	GetCheckpoint(ctx context.Context, checkpointId CheckpointId) (*Checkpoint, error)
}

type CheckpointResponse

type CheckpointResponse struct {
	Height string     `json:"height"`
	Result Checkpoint `json:"result"`
}

type CheckpointStore

type CheckpointStore interface {
	CheckpointReader
	CheckpointWriter
}

type CheckpointWriter

type CheckpointWriter interface {
	PutCheckpoint(ctx context.Context, checkpointId CheckpointId, checkpoint *Checkpoint) error
}

type Checkpoints

type Checkpoints []*Checkpoint

func (Checkpoints) Len

func (cs Checkpoints) Len() int

func (Checkpoints) Less

func (cs Checkpoints) Less(i, j int) bool

func (Checkpoints) Swap

func (cs Checkpoints) Swap(i, j int)

type Client

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

func NewHeimdallClient

func NewHeimdallClient(urlString string, logger log.Logger) *Client

func (*Client) Close

func (c *Client) Close()

Close sends a signal to stop the running process

func (*Client) FetchCheckpoint

func (c *Client) FetchCheckpoint(ctx context.Context, number int64) (*Checkpoint, error)

FetchCheckpoint fetches the checkpoint from heimdall

func (*Client) FetchCheckpointCount

func (c *Client) FetchCheckpointCount(ctx context.Context) (int64, error)

FetchCheckpointCount fetches the checkpoint count from heimdall

func (*Client) FetchCheckpoints

func (c *Client) FetchCheckpoints(ctx context.Context, page uint64, limit uint64) (Checkpoints, error)

func (*Client) FetchLastNoAckMilestone

func (c *Client) FetchLastNoAckMilestone(ctx context.Context) (string, error)

FetchLastNoAckMilestone fetches the last no-ack-milestone from heimdall

func (*Client) FetchLatestSpan

func (c *Client) FetchLatestSpan(ctx context.Context) (*Span, error)

func (*Client) FetchMilestone

func (c *Client) FetchMilestone(ctx context.Context, number int64) (*Milestone, error)

FetchMilestone fetches a milestone from heimdall

func (*Client) FetchMilestoneCount

func (c *Client) FetchMilestoneCount(ctx context.Context) (int64, error)

FetchMilestoneCount fetches the milestone count from heimdall

func (*Client) FetchMilestoneID

func (c *Client) FetchMilestoneID(ctx context.Context, milestoneID string) error

FetchMilestoneID fetches the bool result from Heimdall whether the ID corresponding to the given milestone is in process in Heimdall

func (*Client) FetchNoAckMilestone

func (c *Client) FetchNoAckMilestone(ctx context.Context, milestoneID string) error

FetchNoAckMilestone fetches the last no-ack-milestone from heimdall

func (*Client) FetchSpan

func (c *Client) FetchSpan(ctx context.Context, spanID uint64) (*Span, error)

func (*Client) FetchStateSyncEvent

func (c *Client) FetchStateSyncEvent(ctx context.Context, id uint64) (*EventRecordWithTime, error)

func (*Client) FetchStateSyncEvents

func (c *Client) FetchStateSyncEvents(ctx context.Context, fromID uint64, to time.Time, limit int) ([]*EventRecordWithTime, error)

type EventRecord

type EventRecord struct {
	ID       uint64            `json:"id" yaml:"id"`
	Contract libcommon.Address `json:"contract" yaml:"contract"`
	Data     hexutility.Bytes  `json:"data" yaml:"data"`
	TxHash   libcommon.Hash    `json:"tx_hash" yaml:"tx_hash"`
	LogIndex uint64            `json:"log_index" yaml:"log_index"`
	ChainID  string            `json:"bor_chain_id" yaml:"bor_chain_id"`
}

EventRecord represents state record

type EventRecordWithTime

type EventRecordWithTime struct {
	EventRecord
	Time time.Time `json:"record_time" yaml:"record_time"`
}

func UnpackEventRecordWithTime

func UnpackEventRecordWithTime(stateContract abi.ABI, encodedEvent rlp.RawValue) (*EventRecordWithTime, error)

func (*EventRecordWithTime) BuildEventRecord

func (e *EventRecordWithTime) BuildEventRecord() *EventRecord

func (*EventRecordWithTime) String

func (e *EventRecordWithTime) String() string

String returns the string representatin of a state record

type Heimdall

type Heimdall interface {
	LastCheckpointId(ctx context.Context, store CheckpointStore) (CheckpointId, bool, error)
	LastMilestoneId(ctx context.Context, store MilestoneStore) (MilestoneId, bool, error)
	LastSpanId(ctx context.Context, store SpanStore) (SpanId, bool, error)
	FetchLatestSpan(ctx context.Context, store SpanStore) (*Span, error)

	FetchCheckpoints(ctx context.Context, store CheckpointStore, start CheckpointId, end CheckpointId) ([]*Checkpoint, error)
	FetchMilestones(ctx context.Context, store MilestoneStore, start MilestoneId, end MilestoneId) ([]*Milestone, error)
	FetchSpans(ctx context.Context, store SpanStore, start SpanId, end SpanId) ([]*Span, error)

	FetchCheckpointsFromBlock(ctx context.Context, store CheckpointStore, startBlock uint64) (Waypoints, error)
	FetchMilestonesFromBlock(ctx context.Context, store MilestoneStore, startBlock uint64) (Waypoints, error)
	FetchSpansFromBlock(ctx context.Context, store SpanStore, startBlock uint64) ([]*Span, error)

	OnCheckpointEvent(ctx context.Context, store CheckpointStore, callback func(*Checkpoint)) error
	OnMilestoneEvent(ctx context.Context, store MilestoneStore, callback func(*Milestone)) error
	OnSpanEvent(ctx context.Context, store SpanStore, callback func(*Span)) error
}

Heimdall is a wrapper of Heimdall HTTP API

func NewHeimdall

func NewHeimdall(client HeimdallClient, logger log.Logger) Heimdall

type HeimdallClient

type HeimdallClient interface {
	FetchStateSyncEvents(ctx context.Context, fromId uint64, to time.Time, limit int) ([]*EventRecordWithTime, error)
	FetchStateSyncEvent(ctx context.Context, id uint64) (*EventRecordWithTime, error)

	FetchLatestSpan(ctx context.Context) (*Span, error)
	FetchSpan(ctx context.Context, spanID uint64) (*Span, error)

	FetchCheckpoint(ctx context.Context, number int64) (*Checkpoint, error)
	FetchCheckpointCount(ctx context.Context) (int64, error)
	FetchCheckpoints(ctx context.Context, page uint64, limit uint64) (Checkpoints, error)
	FetchMilestone(ctx context.Context, number int64) (*Milestone, error)
	FetchMilestoneCount(ctx context.Context) (int64, error)

	// FetchNoAckMilestone fetches a bool value whether milestone corresponding to the given id failed in the Heimdall
	FetchNoAckMilestone(ctx context.Context, milestoneID string) error

	// FetchLastNoAckMilestone fetches the latest failed milestone id
	FetchLastNoAckMilestone(ctx context.Context) (string, error)

	// FetchMilestoneID fetches a bool value whether milestone corresponding to the given id is in process in Heimdall
	FetchMilestoneID(ctx context.Context, milestoneID string) error

	Close()
}

type HeimdallNoStore

type HeimdallNoStore interface {
	LastCheckpointId(ctx context.Context) (CheckpointId, bool, error)
	LastMilestoneId(ctx context.Context) (MilestoneId, bool, error)
	LastSpanId(ctx context.Context) (SpanId, bool, error)
	FetchLatestSpan(ctx context.Context) (*Span, error)

	FetchCheckpoints(ctx context.Context, start CheckpointId, end CheckpointId) ([]*Checkpoint, error)
	FetchMilestones(ctx context.Context, start MilestoneId, end MilestoneId) ([]*Milestone, error)
	FetchSpans(ctx context.Context, start SpanId, end SpanId) ([]*Span, error)

	FetchCheckpointsFromBlock(ctx context.Context, startBlock uint64) (Waypoints, error)
	FetchMilestonesFromBlock(ctx context.Context, startBlock uint64) (Waypoints, error)
	FetchSpansFromBlock(ctx context.Context, startBlock uint64) ([]*Span, error)

	OnCheckpointEvent(ctx context.Context, callback func(*Checkpoint)) error
	OnMilestoneEvent(ctx context.Context, callback func(*Milestone)) error
	OnSpanEvent(ctx context.Context, callback func(*Span)) error
}

func NewHeimdallNoStore

func NewHeimdallNoStore(client HeimdallClient, logger log.Logger) HeimdallNoStore

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
	CloseIdleConnections()
}

type Milestone

type Milestone struct {
	Id     MilestoneId
	Fields WaypointFields
}

milestone defines a response object type of bor milestone

func (Milestone) CmpRange

func (m Milestone) CmpRange(n uint64) int

func (Milestone) EndBlock

func (m Milestone) EndBlock() *big.Int

func (Milestone) Length

func (m Milestone) Length() uint64

func (*Milestone) MarshalJSON

func (m *Milestone) MarshalJSON() ([]byte, error)

func (Milestone) RootHash

func (m Milestone) RootHash() libcommon.Hash

func (Milestone) StartBlock

func (m Milestone) StartBlock() *big.Int

func (Milestone) String

func (m Milestone) String() string

func (Milestone) Timestamp

func (m Milestone) Timestamp() uint64

func (*Milestone) UnmarshalJSON

func (m *Milestone) UnmarshalJSON(b []byte) error

type MilestoneCount

type MilestoneCount struct {
	Count int64 `json:"count"`
}

type MilestoneCountResponse

type MilestoneCountResponse struct {
	Height string         `json:"height"`
	Result MilestoneCount `json:"result"`
}

type MilestoneID

type MilestoneID struct {
	Result bool `json:"result"`
}

type MilestoneIDResponse

type MilestoneIDResponse struct {
	Height string      `json:"height"`
	Result MilestoneID `json:"result"`
}

type MilestoneId

type MilestoneId uint64

func MilestoneIdAt

func MilestoneIdAt(tx kv.Tx, block uint64) (MilestoneId, error)

type MilestoneLastNoAck

type MilestoneLastNoAck struct {
	Result string `json:"result"`
}

type MilestoneLastNoAckResponse

type MilestoneLastNoAckResponse struct {
	Height string             `json:"height"`
	Result MilestoneLastNoAck `json:"result"`
}

type MilestoneNoAck

type MilestoneNoAck struct {
	Result bool `json:"result"`
}

type MilestoneNoAckResponse

type MilestoneNoAckResponse struct {
	Height string         `json:"height"`
	Result MilestoneNoAck `json:"result"`
}

type MilestoneReader

type MilestoneReader interface {
	LastMilestoneId(ctx context.Context) (MilestoneId, bool, error)
	GetMilestone(ctx context.Context, milestoneId MilestoneId) (*Milestone, error)
}

type MilestoneResponse

type MilestoneResponse struct {
	Height string    `json:"height"`
	Result Milestone `json:"result"`
}

type MilestoneStore

type MilestoneStore interface {
	MilestoneReader
	MilestoneWriter
}

type MilestoneWriter

type MilestoneWriter interface {
	PutMilestone(ctx context.Context, milestoneId MilestoneId, milestone *Milestone) error
}

type MockCheckpointReader

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

MockCheckpointReader is a mock of CheckpointReader interface.

func NewMockCheckpointReader

func NewMockCheckpointReader(ctrl *gomock.Controller) *MockCheckpointReader

NewMockCheckpointReader creates a new mock instance.

func (*MockCheckpointReader) EXPECT

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

func (*MockCheckpointReader) GetCheckpoint

func (m *MockCheckpointReader) GetCheckpoint(ctx context.Context, checkpointId CheckpointId) (*Checkpoint, error)

GetCheckpoint mocks base method.

func (*MockCheckpointReader) LastCheckpointId

func (m *MockCheckpointReader) LastCheckpointId(ctx context.Context) (CheckpointId, bool, error)

LastCheckpointId mocks base method.

type MockCheckpointReaderGetCheckpointCall

type MockCheckpointReaderGetCheckpointCall struct {
	*gomock.Call
}

MockCheckpointReaderGetCheckpointCall wrap *gomock.Call

func (*MockCheckpointReaderGetCheckpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockCheckpointReaderGetCheckpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCheckpointReaderGetCheckpointCall) Return

Return rewrite *gomock.Call.Return

type MockCheckpointReaderLastCheckpointIdCall

type MockCheckpointReaderLastCheckpointIdCall struct {
	*gomock.Call
}

MockCheckpointReaderLastCheckpointIdCall wrap *gomock.Call

func (*MockCheckpointReaderLastCheckpointIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockCheckpointReaderLastCheckpointIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCheckpointReaderLastCheckpointIdCall) Return

Return rewrite *gomock.Call.Return

type MockCheckpointReaderMockRecorder

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

MockCheckpointReaderMockRecorder is the mock recorder for MockCheckpointReader.

func (*MockCheckpointReaderMockRecorder) GetCheckpoint

func (mr *MockCheckpointReaderMockRecorder) GetCheckpoint(ctx, checkpointId any) *MockCheckpointReaderGetCheckpointCall

GetCheckpoint indicates an expected call of GetCheckpoint.

func (*MockCheckpointReaderMockRecorder) LastCheckpointId

LastCheckpointId indicates an expected call of LastCheckpointId.

type MockCheckpointStore

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

MockCheckpointStore is a mock of CheckpointStore interface.

func NewMockCheckpointStore

func NewMockCheckpointStore(ctrl *gomock.Controller) *MockCheckpointStore

NewMockCheckpointStore creates a new mock instance.

func (*MockCheckpointStore) EXPECT

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

func (*MockCheckpointStore) GetCheckpoint

func (m *MockCheckpointStore) GetCheckpoint(ctx context.Context, checkpointId CheckpointId) (*Checkpoint, error)

GetCheckpoint mocks base method.

func (*MockCheckpointStore) LastCheckpointId

func (m *MockCheckpointStore) LastCheckpointId(ctx context.Context) (CheckpointId, bool, error)

LastCheckpointId mocks base method.

func (*MockCheckpointStore) PutCheckpoint

func (m *MockCheckpointStore) PutCheckpoint(ctx context.Context, checkpointId CheckpointId, checkpoint *Checkpoint) error

PutCheckpoint mocks base method.

type MockCheckpointStoreGetCheckpointCall

type MockCheckpointStoreGetCheckpointCall struct {
	*gomock.Call
}

MockCheckpointStoreGetCheckpointCall wrap *gomock.Call

func (*MockCheckpointStoreGetCheckpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockCheckpointStoreGetCheckpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCheckpointStoreGetCheckpointCall) Return

Return rewrite *gomock.Call.Return

type MockCheckpointStoreLastCheckpointIdCall

type MockCheckpointStoreLastCheckpointIdCall struct {
	*gomock.Call
}

MockCheckpointStoreLastCheckpointIdCall wrap *gomock.Call

func (*MockCheckpointStoreLastCheckpointIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockCheckpointStoreLastCheckpointIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCheckpointStoreLastCheckpointIdCall) Return

Return rewrite *gomock.Call.Return

type MockCheckpointStoreMockRecorder

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

MockCheckpointStoreMockRecorder is the mock recorder for MockCheckpointStore.

func (*MockCheckpointStoreMockRecorder) GetCheckpoint

func (mr *MockCheckpointStoreMockRecorder) GetCheckpoint(ctx, checkpointId any) *MockCheckpointStoreGetCheckpointCall

GetCheckpoint indicates an expected call of GetCheckpoint.

func (*MockCheckpointStoreMockRecorder) LastCheckpointId

LastCheckpointId indicates an expected call of LastCheckpointId.

func (*MockCheckpointStoreMockRecorder) PutCheckpoint

func (mr *MockCheckpointStoreMockRecorder) PutCheckpoint(ctx, checkpointId, checkpoint any) *MockCheckpointStorePutCheckpointCall

PutCheckpoint indicates an expected call of PutCheckpoint.

type MockCheckpointStorePutCheckpointCall

type MockCheckpointStorePutCheckpointCall struct {
	*gomock.Call
}

MockCheckpointStorePutCheckpointCall wrap *gomock.Call

func (*MockCheckpointStorePutCheckpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockCheckpointStorePutCheckpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCheckpointStorePutCheckpointCall) Return

Return rewrite *gomock.Call.Return

type MockCheckpointWriter

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

MockCheckpointWriter is a mock of CheckpointWriter interface.

func NewMockCheckpointWriter

func NewMockCheckpointWriter(ctrl *gomock.Controller) *MockCheckpointWriter

NewMockCheckpointWriter creates a new mock instance.

func (*MockCheckpointWriter) EXPECT

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

func (*MockCheckpointWriter) PutCheckpoint

func (m *MockCheckpointWriter) PutCheckpoint(ctx context.Context, checkpointId CheckpointId, checkpoint *Checkpoint) error

PutCheckpoint mocks base method.

type MockCheckpointWriterMockRecorder

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

MockCheckpointWriterMockRecorder is the mock recorder for MockCheckpointWriter.

func (*MockCheckpointWriterMockRecorder) PutCheckpoint

func (mr *MockCheckpointWriterMockRecorder) PutCheckpoint(ctx, checkpointId, checkpoint any) *MockCheckpointWriterPutCheckpointCall

PutCheckpoint indicates an expected call of PutCheckpoint.

type MockCheckpointWriterPutCheckpointCall

type MockCheckpointWriterPutCheckpointCall struct {
	*gomock.Call
}

MockCheckpointWriterPutCheckpointCall wrap *gomock.Call

func (*MockCheckpointWriterPutCheckpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockCheckpointWriterPutCheckpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCheckpointWriterPutCheckpointCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdall

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

MockHeimdall is a mock of Heimdall interface.

func NewMockHeimdall

func NewMockHeimdall(ctrl *gomock.Controller) *MockHeimdall

NewMockHeimdall creates a new mock instance.

func (*MockHeimdall) EXPECT

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

func (*MockHeimdall) FetchCheckpoints

func (m *MockHeimdall) FetchCheckpoints(arg0 context.Context, arg1 CheckpointStore, arg2, arg3 CheckpointId) ([]*Checkpoint, error)

FetchCheckpoints mocks base method.

func (*MockHeimdall) FetchCheckpointsFromBlock

func (m *MockHeimdall) FetchCheckpointsFromBlock(arg0 context.Context, arg1 CheckpointStore, arg2 uint64) (Waypoints, error)

FetchCheckpointsFromBlock mocks base method.

func (*MockHeimdall) FetchLatestSpan

func (m *MockHeimdall) FetchLatestSpan(arg0 context.Context, arg1 SpanStore) (*Span, error)

FetchLatestSpan mocks base method.

func (*MockHeimdall) FetchMilestones

func (m *MockHeimdall) FetchMilestones(arg0 context.Context, arg1 MilestoneStore, arg2, arg3 MilestoneId) ([]*Milestone, error)

FetchMilestones mocks base method.

func (*MockHeimdall) FetchMilestonesFromBlock

func (m *MockHeimdall) FetchMilestonesFromBlock(arg0 context.Context, arg1 MilestoneStore, arg2 uint64) (Waypoints, error)

FetchMilestonesFromBlock mocks base method.

func (*MockHeimdall) FetchSpans

func (m *MockHeimdall) FetchSpans(arg0 context.Context, arg1 SpanStore, arg2, arg3 SpanId) ([]*Span, error)

FetchSpans mocks base method.

func (*MockHeimdall) FetchSpansFromBlock

func (m *MockHeimdall) FetchSpansFromBlock(arg0 context.Context, arg1 SpanStore, arg2 uint64) ([]*Span, error)

FetchSpansFromBlock mocks base method.

func (*MockHeimdall) LastCheckpointId

func (m *MockHeimdall) LastCheckpointId(arg0 context.Context, arg1 CheckpointStore) (CheckpointId, bool, error)

LastCheckpointId mocks base method.

func (*MockHeimdall) LastMilestoneId

func (m *MockHeimdall) LastMilestoneId(arg0 context.Context, arg1 MilestoneStore) (MilestoneId, bool, error)

LastMilestoneId mocks base method.

func (*MockHeimdall) LastSpanId

func (m *MockHeimdall) LastSpanId(arg0 context.Context, arg1 SpanStore) (SpanId, bool, error)

LastSpanId mocks base method.

func (*MockHeimdall) OnCheckpointEvent

func (m *MockHeimdall) OnCheckpointEvent(arg0 context.Context, arg1 CheckpointStore, arg2 func(*Checkpoint)) error

OnCheckpointEvent mocks base method.

func (*MockHeimdall) OnMilestoneEvent

func (m *MockHeimdall) OnMilestoneEvent(arg0 context.Context, arg1 MilestoneStore, arg2 func(*Milestone)) error

OnMilestoneEvent mocks base method.

func (*MockHeimdall) OnSpanEvent

func (m *MockHeimdall) OnSpanEvent(arg0 context.Context, arg1 SpanStore, arg2 func(*Span)) error

OnSpanEvent mocks base method.

type MockHeimdallClient

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

MockHeimdallClient is a mock of HeimdallClient interface.

func NewMockHeimdallClient

func NewMockHeimdallClient(ctrl *gomock.Controller) *MockHeimdallClient

NewMockHeimdallClient creates a new mock instance.

func (*MockHeimdallClient) Close

func (m *MockHeimdallClient) Close()

Close mocks base method.

func (*MockHeimdallClient) EXPECT

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

func (*MockHeimdallClient) FetchCheckpoint

func (m *MockHeimdallClient) FetchCheckpoint(arg0 context.Context, arg1 int64) (*Checkpoint, error)

FetchCheckpoint mocks base method.

func (*MockHeimdallClient) FetchCheckpointCount

func (m *MockHeimdallClient) FetchCheckpointCount(arg0 context.Context) (int64, error)

FetchCheckpointCount mocks base method.

func (*MockHeimdallClient) FetchCheckpoints

func (m *MockHeimdallClient) FetchCheckpoints(arg0 context.Context, arg1, arg2 uint64) (Checkpoints, error)

FetchCheckpoints mocks base method.

func (*MockHeimdallClient) FetchLastNoAckMilestone

func (m *MockHeimdallClient) FetchLastNoAckMilestone(arg0 context.Context) (string, error)

FetchLastNoAckMilestone mocks base method.

func (*MockHeimdallClient) FetchLatestSpan

func (m *MockHeimdallClient) FetchLatestSpan(arg0 context.Context) (*Span, error)

FetchLatestSpan mocks base method.

func (*MockHeimdallClient) FetchMilestone

func (m *MockHeimdallClient) FetchMilestone(arg0 context.Context, arg1 int64) (*Milestone, error)

FetchMilestone mocks base method.

func (*MockHeimdallClient) FetchMilestoneCount

func (m *MockHeimdallClient) FetchMilestoneCount(arg0 context.Context) (int64, error)

FetchMilestoneCount mocks base method.

func (*MockHeimdallClient) FetchMilestoneID

func (m *MockHeimdallClient) FetchMilestoneID(arg0 context.Context, arg1 string) error

FetchMilestoneID mocks base method.

func (*MockHeimdallClient) FetchNoAckMilestone

func (m *MockHeimdallClient) FetchNoAckMilestone(arg0 context.Context, arg1 string) error

FetchNoAckMilestone mocks base method.

func (*MockHeimdallClient) FetchSpan

func (m *MockHeimdallClient) FetchSpan(arg0 context.Context, arg1 uint64) (*Span, error)

FetchSpan mocks base method.

func (*MockHeimdallClient) FetchStateSyncEvent

func (m *MockHeimdallClient) FetchStateSyncEvent(arg0 context.Context, arg1 uint64) (*EventRecordWithTime, error)

FetchStateSyncEvent mocks base method.

func (*MockHeimdallClient) FetchStateSyncEvents

func (m *MockHeimdallClient) FetchStateSyncEvents(arg0 context.Context, arg1 uint64, arg2 time.Time, arg3 int) ([]*EventRecordWithTime, error)

FetchStateSyncEvents mocks base method.

type MockHeimdallClientCloseCall

type MockHeimdallClientCloseCall struct {
	*gomock.Call
}

MockHeimdallClientCloseCall wrap *gomock.Call

func (*MockHeimdallClientCloseCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientCloseCall) DoAndReturn

func (c *MockHeimdallClientCloseCall) DoAndReturn(f func()) *MockHeimdallClientCloseCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientCloseCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchCheckpointCall

type MockHeimdallClientFetchCheckpointCall struct {
	*gomock.Call
}

MockHeimdallClientFetchCheckpointCall wrap *gomock.Call

func (*MockHeimdallClientFetchCheckpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchCheckpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchCheckpointCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchCheckpointCountCall

type MockHeimdallClientFetchCheckpointCountCall struct {
	*gomock.Call
}

MockHeimdallClientFetchCheckpointCountCall wrap *gomock.Call

func (*MockHeimdallClientFetchCheckpointCountCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchCheckpointCountCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchCheckpointCountCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchCheckpointsCall

type MockHeimdallClientFetchCheckpointsCall struct {
	*gomock.Call
}

MockHeimdallClientFetchCheckpointsCall wrap *gomock.Call

func (*MockHeimdallClientFetchCheckpointsCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchCheckpointsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchCheckpointsCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchLastNoAckMilestoneCall

type MockHeimdallClientFetchLastNoAckMilestoneCall struct {
	*gomock.Call
}

MockHeimdallClientFetchLastNoAckMilestoneCall wrap *gomock.Call

func (*MockHeimdallClientFetchLastNoAckMilestoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchLastNoAckMilestoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchLastNoAckMilestoneCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchLatestSpanCall

type MockHeimdallClientFetchLatestSpanCall struct {
	*gomock.Call
}

MockHeimdallClientFetchLatestSpanCall wrap *gomock.Call

func (*MockHeimdallClientFetchLatestSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchLatestSpanCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchLatestSpanCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchMilestoneCall

type MockHeimdallClientFetchMilestoneCall struct {
	*gomock.Call
}

MockHeimdallClientFetchMilestoneCall wrap *gomock.Call

func (*MockHeimdallClientFetchMilestoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchMilestoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchMilestoneCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchMilestoneCountCall

type MockHeimdallClientFetchMilestoneCountCall struct {
	*gomock.Call
}

MockHeimdallClientFetchMilestoneCountCall wrap *gomock.Call

func (*MockHeimdallClientFetchMilestoneCountCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchMilestoneCountCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchMilestoneCountCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchMilestoneIDCall

type MockHeimdallClientFetchMilestoneIDCall struct {
	*gomock.Call
}

MockHeimdallClientFetchMilestoneIDCall wrap *gomock.Call

func (*MockHeimdallClientFetchMilestoneIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchMilestoneIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchMilestoneIDCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchNoAckMilestoneCall

type MockHeimdallClientFetchNoAckMilestoneCall struct {
	*gomock.Call
}

MockHeimdallClientFetchNoAckMilestoneCall wrap *gomock.Call

func (*MockHeimdallClientFetchNoAckMilestoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchNoAckMilestoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchNoAckMilestoneCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchSpanCall

type MockHeimdallClientFetchSpanCall struct {
	*gomock.Call
}

MockHeimdallClientFetchSpanCall wrap *gomock.Call

func (*MockHeimdallClientFetchSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchSpanCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchSpanCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchStateSyncEventCall

type MockHeimdallClientFetchStateSyncEventCall struct {
	*gomock.Call
}

MockHeimdallClientFetchStateSyncEventCall wrap *gomock.Call

func (*MockHeimdallClientFetchStateSyncEventCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchStateSyncEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchStateSyncEventCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientFetchStateSyncEventsCall

type MockHeimdallClientFetchStateSyncEventsCall struct {
	*gomock.Call
}

MockHeimdallClientFetchStateSyncEventsCall wrap *gomock.Call

func (*MockHeimdallClientFetchStateSyncEventsCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallClientFetchStateSyncEventsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallClientFetchStateSyncEventsCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallClientMockRecorder

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

MockHeimdallClientMockRecorder is the mock recorder for MockHeimdallClient.

func (*MockHeimdallClientMockRecorder) Close

Close indicates an expected call of Close.

func (*MockHeimdallClientMockRecorder) FetchCheckpoint

FetchCheckpoint indicates an expected call of FetchCheckpoint.

func (*MockHeimdallClientMockRecorder) FetchCheckpointCount

FetchCheckpointCount indicates an expected call of FetchCheckpointCount.

func (*MockHeimdallClientMockRecorder) FetchCheckpoints

func (mr *MockHeimdallClientMockRecorder) FetchCheckpoints(arg0, arg1, arg2 any) *MockHeimdallClientFetchCheckpointsCall

FetchCheckpoints indicates an expected call of FetchCheckpoints.

func (*MockHeimdallClientMockRecorder) FetchLastNoAckMilestone

FetchLastNoAckMilestone indicates an expected call of FetchLastNoAckMilestone.

func (*MockHeimdallClientMockRecorder) FetchLatestSpan

FetchLatestSpan indicates an expected call of FetchLatestSpan.

func (*MockHeimdallClientMockRecorder) FetchMilestone

FetchMilestone indicates an expected call of FetchMilestone.

func (*MockHeimdallClientMockRecorder) FetchMilestoneCount

FetchMilestoneCount indicates an expected call of FetchMilestoneCount.

func (*MockHeimdallClientMockRecorder) FetchMilestoneID

FetchMilestoneID indicates an expected call of FetchMilestoneID.

func (*MockHeimdallClientMockRecorder) FetchNoAckMilestone

FetchNoAckMilestone indicates an expected call of FetchNoAckMilestone.

func (*MockHeimdallClientMockRecorder) FetchSpan

FetchSpan indicates an expected call of FetchSpan.

func (*MockHeimdallClientMockRecorder) FetchStateSyncEvent

FetchStateSyncEvent indicates an expected call of FetchStateSyncEvent.

func (*MockHeimdallClientMockRecorder) FetchStateSyncEvents

func (mr *MockHeimdallClientMockRecorder) FetchStateSyncEvents(arg0, arg1, arg2, arg3 any) *MockHeimdallClientFetchStateSyncEventsCall

FetchStateSyncEvents indicates an expected call of FetchStateSyncEvents.

type MockHeimdallFetchCheckpointsCall

type MockHeimdallFetchCheckpointsCall struct {
	*gomock.Call
}

MockHeimdallFetchCheckpointsCall wrap *gomock.Call

func (*MockHeimdallFetchCheckpointsCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallFetchCheckpointsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallFetchCheckpointsCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallFetchCheckpointsFromBlockCall

type MockHeimdallFetchCheckpointsFromBlockCall struct {
	*gomock.Call
}

MockHeimdallFetchCheckpointsFromBlockCall wrap *gomock.Call

func (*MockHeimdallFetchCheckpointsFromBlockCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallFetchCheckpointsFromBlockCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallFetchCheckpointsFromBlockCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallFetchLatestSpanCall

type MockHeimdallFetchLatestSpanCall struct {
	*gomock.Call
}

MockHeimdallFetchLatestSpanCall wrap *gomock.Call

func (*MockHeimdallFetchLatestSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallFetchLatestSpanCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallFetchLatestSpanCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallFetchMilestonesCall

type MockHeimdallFetchMilestonesCall struct {
	*gomock.Call
}

MockHeimdallFetchMilestonesCall wrap *gomock.Call

func (*MockHeimdallFetchMilestonesCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallFetchMilestonesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallFetchMilestonesCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallFetchMilestonesFromBlockCall

type MockHeimdallFetchMilestonesFromBlockCall struct {
	*gomock.Call
}

MockHeimdallFetchMilestonesFromBlockCall wrap *gomock.Call

func (*MockHeimdallFetchMilestonesFromBlockCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallFetchMilestonesFromBlockCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallFetchMilestonesFromBlockCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallFetchSpansCall

type MockHeimdallFetchSpansCall struct {
	*gomock.Call
}

MockHeimdallFetchSpansCall wrap *gomock.Call

func (*MockHeimdallFetchSpansCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallFetchSpansCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallFetchSpansCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallFetchSpansFromBlockCall

type MockHeimdallFetchSpansFromBlockCall struct {
	*gomock.Call
}

MockHeimdallFetchSpansFromBlockCall wrap *gomock.Call

func (*MockHeimdallFetchSpansFromBlockCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallFetchSpansFromBlockCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallFetchSpansFromBlockCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallLastCheckpointIdCall

type MockHeimdallLastCheckpointIdCall struct {
	*gomock.Call
}

MockHeimdallLastCheckpointIdCall wrap *gomock.Call

func (*MockHeimdallLastCheckpointIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallLastCheckpointIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallLastCheckpointIdCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallLastMilestoneIdCall

type MockHeimdallLastMilestoneIdCall struct {
	*gomock.Call
}

MockHeimdallLastMilestoneIdCall wrap *gomock.Call

func (*MockHeimdallLastMilestoneIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallLastMilestoneIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallLastMilestoneIdCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallLastSpanIdCall

type MockHeimdallLastSpanIdCall struct {
	*gomock.Call
}

MockHeimdallLastSpanIdCall wrap *gomock.Call

func (*MockHeimdallLastSpanIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallLastSpanIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallLastSpanIdCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallMockRecorder

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

MockHeimdallMockRecorder is the mock recorder for MockHeimdall.

func (*MockHeimdallMockRecorder) FetchCheckpoints

func (mr *MockHeimdallMockRecorder) FetchCheckpoints(arg0, arg1, arg2, arg3 any) *MockHeimdallFetchCheckpointsCall

FetchCheckpoints indicates an expected call of FetchCheckpoints.

func (*MockHeimdallMockRecorder) FetchCheckpointsFromBlock

func (mr *MockHeimdallMockRecorder) FetchCheckpointsFromBlock(arg0, arg1, arg2 any) *MockHeimdallFetchCheckpointsFromBlockCall

FetchCheckpointsFromBlock indicates an expected call of FetchCheckpointsFromBlock.

func (*MockHeimdallMockRecorder) FetchLatestSpan

func (mr *MockHeimdallMockRecorder) FetchLatestSpan(arg0, arg1 any) *MockHeimdallFetchLatestSpanCall

FetchLatestSpan indicates an expected call of FetchLatestSpan.

func (*MockHeimdallMockRecorder) FetchMilestones

func (mr *MockHeimdallMockRecorder) FetchMilestones(arg0, arg1, arg2, arg3 any) *MockHeimdallFetchMilestonesCall

FetchMilestones indicates an expected call of FetchMilestones.

func (*MockHeimdallMockRecorder) FetchMilestonesFromBlock

func (mr *MockHeimdallMockRecorder) FetchMilestonesFromBlock(arg0, arg1, arg2 any) *MockHeimdallFetchMilestonesFromBlockCall

FetchMilestonesFromBlock indicates an expected call of FetchMilestonesFromBlock.

func (*MockHeimdallMockRecorder) FetchSpans

func (mr *MockHeimdallMockRecorder) FetchSpans(arg0, arg1, arg2, arg3 any) *MockHeimdallFetchSpansCall

FetchSpans indicates an expected call of FetchSpans.

func (*MockHeimdallMockRecorder) FetchSpansFromBlock

func (mr *MockHeimdallMockRecorder) FetchSpansFromBlock(arg0, arg1, arg2 any) *MockHeimdallFetchSpansFromBlockCall

FetchSpansFromBlock indicates an expected call of FetchSpansFromBlock.

func (*MockHeimdallMockRecorder) LastCheckpointId

func (mr *MockHeimdallMockRecorder) LastCheckpointId(arg0, arg1 any) *MockHeimdallLastCheckpointIdCall

LastCheckpointId indicates an expected call of LastCheckpointId.

func (*MockHeimdallMockRecorder) LastMilestoneId

func (mr *MockHeimdallMockRecorder) LastMilestoneId(arg0, arg1 any) *MockHeimdallLastMilestoneIdCall

LastMilestoneId indicates an expected call of LastMilestoneId.

func (*MockHeimdallMockRecorder) LastSpanId

func (mr *MockHeimdallMockRecorder) LastSpanId(arg0, arg1 any) *MockHeimdallLastSpanIdCall

LastSpanId indicates an expected call of LastSpanId.

func (*MockHeimdallMockRecorder) OnCheckpointEvent

func (mr *MockHeimdallMockRecorder) OnCheckpointEvent(arg0, arg1, arg2 any) *MockHeimdallOnCheckpointEventCall

OnCheckpointEvent indicates an expected call of OnCheckpointEvent.

func (*MockHeimdallMockRecorder) OnMilestoneEvent

func (mr *MockHeimdallMockRecorder) OnMilestoneEvent(arg0, arg1, arg2 any) *MockHeimdallOnMilestoneEventCall

OnMilestoneEvent indicates an expected call of OnMilestoneEvent.

func (*MockHeimdallMockRecorder) OnSpanEvent

func (mr *MockHeimdallMockRecorder) OnSpanEvent(arg0, arg1, arg2 any) *MockHeimdallOnSpanEventCall

OnSpanEvent indicates an expected call of OnSpanEvent.

type MockHeimdallNoStore

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

MockHeimdallNoStore is a mock of HeimdallNoStore interface.

func NewMockHeimdallNoStore

func NewMockHeimdallNoStore(ctrl *gomock.Controller) *MockHeimdallNoStore

NewMockHeimdallNoStore creates a new mock instance.

func (*MockHeimdallNoStore) EXPECT

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

func (*MockHeimdallNoStore) FetchCheckpoints

func (m *MockHeimdallNoStore) FetchCheckpoints(arg0 context.Context, arg1, arg2 CheckpointId) ([]*Checkpoint, error)

FetchCheckpoints mocks base method.

func (*MockHeimdallNoStore) FetchCheckpointsFromBlock

func (m *MockHeimdallNoStore) FetchCheckpointsFromBlock(arg0 context.Context, arg1 uint64) (Waypoints, error)

FetchCheckpointsFromBlock mocks base method.

func (*MockHeimdallNoStore) FetchLatestSpan

func (m *MockHeimdallNoStore) FetchLatestSpan(arg0 context.Context) (*Span, error)

FetchLatestSpan mocks base method.

func (*MockHeimdallNoStore) FetchMilestones

func (m *MockHeimdallNoStore) FetchMilestones(arg0 context.Context, arg1, arg2 MilestoneId) ([]*Milestone, error)

FetchMilestones mocks base method.

func (*MockHeimdallNoStore) FetchMilestonesFromBlock

func (m *MockHeimdallNoStore) FetchMilestonesFromBlock(arg0 context.Context, arg1 uint64) (Waypoints, error)

FetchMilestonesFromBlock mocks base method.

func (*MockHeimdallNoStore) FetchSpans

func (m *MockHeimdallNoStore) FetchSpans(arg0 context.Context, arg1, arg2 SpanId) ([]*Span, error)

FetchSpans mocks base method.

func (*MockHeimdallNoStore) FetchSpansFromBlock

func (m *MockHeimdallNoStore) FetchSpansFromBlock(arg0 context.Context, arg1 uint64) ([]*Span, error)

FetchSpansFromBlock mocks base method.

func (*MockHeimdallNoStore) LastCheckpointId

func (m *MockHeimdallNoStore) LastCheckpointId(arg0 context.Context) (CheckpointId, bool, error)

LastCheckpointId mocks base method.

func (*MockHeimdallNoStore) LastMilestoneId

func (m *MockHeimdallNoStore) LastMilestoneId(arg0 context.Context) (MilestoneId, bool, error)

LastMilestoneId mocks base method.

func (*MockHeimdallNoStore) LastSpanId

func (m *MockHeimdallNoStore) LastSpanId(arg0 context.Context) (SpanId, bool, error)

LastSpanId mocks base method.

func (*MockHeimdallNoStore) OnCheckpointEvent

func (m *MockHeimdallNoStore) OnCheckpointEvent(arg0 context.Context, arg1 func(*Checkpoint)) error

OnCheckpointEvent mocks base method.

func (*MockHeimdallNoStore) OnMilestoneEvent

func (m *MockHeimdallNoStore) OnMilestoneEvent(arg0 context.Context, arg1 func(*Milestone)) error

OnMilestoneEvent mocks base method.

func (*MockHeimdallNoStore) OnSpanEvent

func (m *MockHeimdallNoStore) OnSpanEvent(arg0 context.Context, arg1 func(*Span)) error

OnSpanEvent mocks base method.

type MockHeimdallNoStoreFetchCheckpointsCall

type MockHeimdallNoStoreFetchCheckpointsCall struct {
	*gomock.Call
}

MockHeimdallNoStoreFetchCheckpointsCall wrap *gomock.Call

func (*MockHeimdallNoStoreFetchCheckpointsCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreFetchCheckpointsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreFetchCheckpointsCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreFetchCheckpointsFromBlockCall

type MockHeimdallNoStoreFetchCheckpointsFromBlockCall struct {
	*gomock.Call
}

MockHeimdallNoStoreFetchCheckpointsFromBlockCall wrap *gomock.Call

func (*MockHeimdallNoStoreFetchCheckpointsFromBlockCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreFetchCheckpointsFromBlockCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreFetchCheckpointsFromBlockCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreFetchLatestSpanCall

type MockHeimdallNoStoreFetchLatestSpanCall struct {
	*gomock.Call
}

MockHeimdallNoStoreFetchLatestSpanCall wrap *gomock.Call

func (*MockHeimdallNoStoreFetchLatestSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreFetchLatestSpanCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreFetchLatestSpanCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreFetchMilestonesCall

type MockHeimdallNoStoreFetchMilestonesCall struct {
	*gomock.Call
}

MockHeimdallNoStoreFetchMilestonesCall wrap *gomock.Call

func (*MockHeimdallNoStoreFetchMilestonesCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreFetchMilestonesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreFetchMilestonesCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreFetchMilestonesFromBlockCall

type MockHeimdallNoStoreFetchMilestonesFromBlockCall struct {
	*gomock.Call
}

MockHeimdallNoStoreFetchMilestonesFromBlockCall wrap *gomock.Call

func (*MockHeimdallNoStoreFetchMilestonesFromBlockCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreFetchMilestonesFromBlockCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreFetchMilestonesFromBlockCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreFetchSpansCall

type MockHeimdallNoStoreFetchSpansCall struct {
	*gomock.Call
}

MockHeimdallNoStoreFetchSpansCall wrap *gomock.Call

func (*MockHeimdallNoStoreFetchSpansCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreFetchSpansCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreFetchSpansCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreFetchSpansFromBlockCall

type MockHeimdallNoStoreFetchSpansFromBlockCall struct {
	*gomock.Call
}

MockHeimdallNoStoreFetchSpansFromBlockCall wrap *gomock.Call

func (*MockHeimdallNoStoreFetchSpansFromBlockCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreFetchSpansFromBlockCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreFetchSpansFromBlockCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreLastCheckpointIdCall

type MockHeimdallNoStoreLastCheckpointIdCall struct {
	*gomock.Call
}

MockHeimdallNoStoreLastCheckpointIdCall wrap *gomock.Call

func (*MockHeimdallNoStoreLastCheckpointIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreLastCheckpointIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreLastCheckpointIdCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreLastMilestoneIdCall

type MockHeimdallNoStoreLastMilestoneIdCall struct {
	*gomock.Call
}

MockHeimdallNoStoreLastMilestoneIdCall wrap *gomock.Call

func (*MockHeimdallNoStoreLastMilestoneIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreLastMilestoneIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreLastMilestoneIdCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreLastSpanIdCall

type MockHeimdallNoStoreLastSpanIdCall struct {
	*gomock.Call
}

MockHeimdallNoStoreLastSpanIdCall wrap *gomock.Call

func (*MockHeimdallNoStoreLastSpanIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreLastSpanIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreLastSpanIdCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreMockRecorder

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

MockHeimdallNoStoreMockRecorder is the mock recorder for MockHeimdallNoStore.

func (*MockHeimdallNoStoreMockRecorder) FetchCheckpoints

func (mr *MockHeimdallNoStoreMockRecorder) FetchCheckpoints(arg0, arg1, arg2 any) *MockHeimdallNoStoreFetchCheckpointsCall

FetchCheckpoints indicates an expected call of FetchCheckpoints.

func (*MockHeimdallNoStoreMockRecorder) FetchCheckpointsFromBlock

FetchCheckpointsFromBlock indicates an expected call of FetchCheckpointsFromBlock.

func (*MockHeimdallNoStoreMockRecorder) FetchLatestSpan

FetchLatestSpan indicates an expected call of FetchLatestSpan.

func (*MockHeimdallNoStoreMockRecorder) FetchMilestones

func (mr *MockHeimdallNoStoreMockRecorder) FetchMilestones(arg0, arg1, arg2 any) *MockHeimdallNoStoreFetchMilestonesCall

FetchMilestones indicates an expected call of FetchMilestones.

func (*MockHeimdallNoStoreMockRecorder) FetchMilestonesFromBlock

FetchMilestonesFromBlock indicates an expected call of FetchMilestonesFromBlock.

func (*MockHeimdallNoStoreMockRecorder) FetchSpans

func (mr *MockHeimdallNoStoreMockRecorder) FetchSpans(arg0, arg1, arg2 any) *MockHeimdallNoStoreFetchSpansCall

FetchSpans indicates an expected call of FetchSpans.

func (*MockHeimdallNoStoreMockRecorder) FetchSpansFromBlock

FetchSpansFromBlock indicates an expected call of FetchSpansFromBlock.

func (*MockHeimdallNoStoreMockRecorder) LastCheckpointId

LastCheckpointId indicates an expected call of LastCheckpointId.

func (*MockHeimdallNoStoreMockRecorder) LastMilestoneId

LastMilestoneId indicates an expected call of LastMilestoneId.

func (*MockHeimdallNoStoreMockRecorder) LastSpanId

LastSpanId indicates an expected call of LastSpanId.

func (*MockHeimdallNoStoreMockRecorder) OnCheckpointEvent

OnCheckpointEvent indicates an expected call of OnCheckpointEvent.

func (*MockHeimdallNoStoreMockRecorder) OnMilestoneEvent

OnMilestoneEvent indicates an expected call of OnMilestoneEvent.

func (*MockHeimdallNoStoreMockRecorder) OnSpanEvent

OnSpanEvent indicates an expected call of OnSpanEvent.

type MockHeimdallNoStoreOnCheckpointEventCall

type MockHeimdallNoStoreOnCheckpointEventCall struct {
	*gomock.Call
}

MockHeimdallNoStoreOnCheckpointEventCall wrap *gomock.Call

func (*MockHeimdallNoStoreOnCheckpointEventCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreOnCheckpointEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreOnCheckpointEventCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreOnMilestoneEventCall

type MockHeimdallNoStoreOnMilestoneEventCall struct {
	*gomock.Call
}

MockHeimdallNoStoreOnMilestoneEventCall wrap *gomock.Call

func (*MockHeimdallNoStoreOnMilestoneEventCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreOnMilestoneEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreOnMilestoneEventCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallNoStoreOnSpanEventCall

type MockHeimdallNoStoreOnSpanEventCall struct {
	*gomock.Call
}

MockHeimdallNoStoreOnSpanEventCall wrap *gomock.Call

func (*MockHeimdallNoStoreOnSpanEventCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallNoStoreOnSpanEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallNoStoreOnSpanEventCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallOnCheckpointEventCall

type MockHeimdallOnCheckpointEventCall struct {
	*gomock.Call
}

MockHeimdallOnCheckpointEventCall wrap *gomock.Call

func (*MockHeimdallOnCheckpointEventCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallOnCheckpointEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallOnCheckpointEventCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallOnMilestoneEventCall

type MockHeimdallOnMilestoneEventCall struct {
	*gomock.Call
}

MockHeimdallOnMilestoneEventCall wrap *gomock.Call

func (*MockHeimdallOnMilestoneEventCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallOnMilestoneEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallOnMilestoneEventCall) Return

Return rewrite *gomock.Call.Return

type MockHeimdallOnSpanEventCall

type MockHeimdallOnSpanEventCall struct {
	*gomock.Call
}

MockHeimdallOnSpanEventCall wrap *gomock.Call

func (*MockHeimdallOnSpanEventCall) Do

Do rewrite *gomock.Call.Do

func (*MockHeimdallOnSpanEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHeimdallOnSpanEventCall) Return

Return rewrite *gomock.Call.Return

type MockHttpClient

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

MockHttpClient is a mock of HttpClient interface.

func NewMockHttpClient

func NewMockHttpClient(ctrl *gomock.Controller) *MockHttpClient

NewMockHttpClient creates a new mock instance.

func (*MockHttpClient) CloseIdleConnections

func (m *MockHttpClient) CloseIdleConnections()

CloseIdleConnections mocks base method.

func (*MockHttpClient) Do

func (m *MockHttpClient) Do(arg0 *http.Request) (*http.Response, error)

Do mocks base method.

func (*MockHttpClient) EXPECT

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

type MockHttpClientCloseIdleConnectionsCall

type MockHttpClientCloseIdleConnectionsCall struct {
	*gomock.Call
}

MockHttpClientCloseIdleConnectionsCall wrap *gomock.Call

func (*MockHttpClientCloseIdleConnectionsCall) Do

Do rewrite *gomock.Call.Do

func (*MockHttpClientCloseIdleConnectionsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHttpClientCloseIdleConnectionsCall) Return

Return rewrite *gomock.Call.Return

type MockHttpClientDoCall

type MockHttpClientDoCall struct {
	*gomock.Call
}

MockHttpClientDoCall wrap *gomock.Call

func (*MockHttpClientDoCall) Do

Do rewrite *gomock.Call.Do

func (*MockHttpClientDoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHttpClientDoCall) Return

Return rewrite *gomock.Call.Return

type MockHttpClientMockRecorder

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

MockHttpClientMockRecorder is the mock recorder for MockHttpClient.

func (*MockHttpClientMockRecorder) CloseIdleConnections

CloseIdleConnections indicates an expected call of CloseIdleConnections.

func (*MockHttpClientMockRecorder) Do

Do indicates an expected call of Do.

type MockMilestoneReader

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

MockMilestoneReader is a mock of MilestoneReader interface.

func NewMockMilestoneReader

func NewMockMilestoneReader(ctrl *gomock.Controller) *MockMilestoneReader

NewMockMilestoneReader creates a new mock instance.

func (*MockMilestoneReader) EXPECT

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

func (*MockMilestoneReader) GetMilestone

func (m *MockMilestoneReader) GetMilestone(ctx context.Context, milestoneId MilestoneId) (*Milestone, error)

GetMilestone mocks base method.

func (*MockMilestoneReader) LastMilestoneId

func (m *MockMilestoneReader) LastMilestoneId(ctx context.Context) (MilestoneId, bool, error)

LastMilestoneId mocks base method.

type MockMilestoneReaderGetMilestoneCall

type MockMilestoneReaderGetMilestoneCall struct {
	*gomock.Call
}

MockMilestoneReaderGetMilestoneCall wrap *gomock.Call

func (*MockMilestoneReaderGetMilestoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockMilestoneReaderGetMilestoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMilestoneReaderGetMilestoneCall) Return

Return rewrite *gomock.Call.Return

type MockMilestoneReaderLastMilestoneIdCall

type MockMilestoneReaderLastMilestoneIdCall struct {
	*gomock.Call
}

MockMilestoneReaderLastMilestoneIdCall wrap *gomock.Call

func (*MockMilestoneReaderLastMilestoneIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockMilestoneReaderLastMilestoneIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMilestoneReaderLastMilestoneIdCall) Return

Return rewrite *gomock.Call.Return

type MockMilestoneReaderMockRecorder

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

MockMilestoneReaderMockRecorder is the mock recorder for MockMilestoneReader.

func (*MockMilestoneReaderMockRecorder) GetMilestone

func (mr *MockMilestoneReaderMockRecorder) GetMilestone(ctx, milestoneId any) *MockMilestoneReaderGetMilestoneCall

GetMilestone indicates an expected call of GetMilestone.

func (*MockMilestoneReaderMockRecorder) LastMilestoneId

LastMilestoneId indicates an expected call of LastMilestoneId.

type MockMilestoneStore

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

MockMilestoneStore is a mock of MilestoneStore interface.

func NewMockMilestoneStore

func NewMockMilestoneStore(ctrl *gomock.Controller) *MockMilestoneStore

NewMockMilestoneStore creates a new mock instance.

func (*MockMilestoneStore) EXPECT

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

func (*MockMilestoneStore) GetMilestone

func (m *MockMilestoneStore) GetMilestone(ctx context.Context, milestoneId MilestoneId) (*Milestone, error)

GetMilestone mocks base method.

func (*MockMilestoneStore) LastMilestoneId

func (m *MockMilestoneStore) LastMilestoneId(ctx context.Context) (MilestoneId, bool, error)

LastMilestoneId mocks base method.

func (*MockMilestoneStore) PutMilestone

func (m *MockMilestoneStore) PutMilestone(ctx context.Context, milestoneId MilestoneId, milestone *Milestone) error

PutMilestone mocks base method.

type MockMilestoneStoreGetMilestoneCall

type MockMilestoneStoreGetMilestoneCall struct {
	*gomock.Call
}

MockMilestoneStoreGetMilestoneCall wrap *gomock.Call

func (*MockMilestoneStoreGetMilestoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockMilestoneStoreGetMilestoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMilestoneStoreGetMilestoneCall) Return

Return rewrite *gomock.Call.Return

type MockMilestoneStoreLastMilestoneIdCall

type MockMilestoneStoreLastMilestoneIdCall struct {
	*gomock.Call
}

MockMilestoneStoreLastMilestoneIdCall wrap *gomock.Call

func (*MockMilestoneStoreLastMilestoneIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockMilestoneStoreLastMilestoneIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMilestoneStoreLastMilestoneIdCall) Return

Return rewrite *gomock.Call.Return

type MockMilestoneStoreMockRecorder

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

MockMilestoneStoreMockRecorder is the mock recorder for MockMilestoneStore.

func (*MockMilestoneStoreMockRecorder) GetMilestone

func (mr *MockMilestoneStoreMockRecorder) GetMilestone(ctx, milestoneId any) *MockMilestoneStoreGetMilestoneCall

GetMilestone indicates an expected call of GetMilestone.

func (*MockMilestoneStoreMockRecorder) LastMilestoneId

LastMilestoneId indicates an expected call of LastMilestoneId.

func (*MockMilestoneStoreMockRecorder) PutMilestone

func (mr *MockMilestoneStoreMockRecorder) PutMilestone(ctx, milestoneId, milestone any) *MockMilestoneStorePutMilestoneCall

PutMilestone indicates an expected call of PutMilestone.

type MockMilestoneStorePutMilestoneCall

type MockMilestoneStorePutMilestoneCall struct {
	*gomock.Call
}

MockMilestoneStorePutMilestoneCall wrap *gomock.Call

func (*MockMilestoneStorePutMilestoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockMilestoneStorePutMilestoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMilestoneStorePutMilestoneCall) Return

Return rewrite *gomock.Call.Return

type MockMilestoneWriter

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

MockMilestoneWriter is a mock of MilestoneWriter interface.

func NewMockMilestoneWriter

func NewMockMilestoneWriter(ctrl *gomock.Controller) *MockMilestoneWriter

NewMockMilestoneWriter creates a new mock instance.

func (*MockMilestoneWriter) EXPECT

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

func (*MockMilestoneWriter) PutMilestone

func (m *MockMilestoneWriter) PutMilestone(ctx context.Context, milestoneId MilestoneId, milestone *Milestone) error

PutMilestone mocks base method.

type MockMilestoneWriterMockRecorder

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

MockMilestoneWriterMockRecorder is the mock recorder for MockMilestoneWriter.

func (*MockMilestoneWriterMockRecorder) PutMilestone

func (mr *MockMilestoneWriterMockRecorder) PutMilestone(ctx, milestoneId, milestone any) *MockMilestoneWriterPutMilestoneCall

PutMilestone indicates an expected call of PutMilestone.

type MockMilestoneWriterPutMilestoneCall

type MockMilestoneWriterPutMilestoneCall struct {
	*gomock.Call
}

MockMilestoneWriterPutMilestoneCall wrap *gomock.Call

func (*MockMilestoneWriterPutMilestoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockMilestoneWriterPutMilestoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMilestoneWriterPutMilestoneCall) Return

Return rewrite *gomock.Call.Return

type MockSpanReader

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

MockSpanReader is a mock of SpanReader interface.

func NewMockSpanReader

func NewMockSpanReader(ctrl *gomock.Controller) *MockSpanReader

NewMockSpanReader creates a new mock instance.

func (*MockSpanReader) EXPECT

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

func (*MockSpanReader) GetSpan

func (m *MockSpanReader) GetSpan(ctx context.Context, spanId SpanId) (*Span, error)

GetSpan mocks base method.

func (*MockSpanReader) LastSpanId

func (m *MockSpanReader) LastSpanId(ctx context.Context) (SpanId, bool, error)

LastSpanId mocks base method.

type MockSpanReaderGetSpanCall

type MockSpanReaderGetSpanCall struct {
	*gomock.Call
}

MockSpanReaderGetSpanCall wrap *gomock.Call

func (*MockSpanReaderGetSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockSpanReaderGetSpanCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSpanReaderGetSpanCall) Return

Return rewrite *gomock.Call.Return

type MockSpanReaderLastSpanIdCall

type MockSpanReaderLastSpanIdCall struct {
	*gomock.Call
}

MockSpanReaderLastSpanIdCall wrap *gomock.Call

func (*MockSpanReaderLastSpanIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockSpanReaderLastSpanIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSpanReaderLastSpanIdCall) Return

Return rewrite *gomock.Call.Return

type MockSpanReaderMockRecorder

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

MockSpanReaderMockRecorder is the mock recorder for MockSpanReader.

func (*MockSpanReaderMockRecorder) GetSpan

func (mr *MockSpanReaderMockRecorder) GetSpan(ctx, spanId any) *MockSpanReaderGetSpanCall

GetSpan indicates an expected call of GetSpan.

func (*MockSpanReaderMockRecorder) LastSpanId

LastSpanId indicates an expected call of LastSpanId.

type MockSpanStore

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

MockSpanStore is a mock of SpanStore interface.

func NewMockSpanStore

func NewMockSpanStore(ctrl *gomock.Controller) *MockSpanStore

NewMockSpanStore creates a new mock instance.

func (*MockSpanStore) EXPECT

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

func (*MockSpanStore) GetSpan

func (m *MockSpanStore) GetSpan(ctx context.Context, spanId SpanId) (*Span, error)

GetSpan mocks base method.

func (*MockSpanStore) LastSpanId

func (m *MockSpanStore) LastSpanId(ctx context.Context) (SpanId, bool, error)

LastSpanId mocks base method.

func (*MockSpanStore) PutSpan

func (m *MockSpanStore) PutSpan(ctx context.Context, span *Span) error

PutSpan mocks base method.

type MockSpanStoreGetSpanCall

type MockSpanStoreGetSpanCall struct {
	*gomock.Call
}

MockSpanStoreGetSpanCall wrap *gomock.Call

func (*MockSpanStoreGetSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockSpanStoreGetSpanCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSpanStoreGetSpanCall) Return

Return rewrite *gomock.Call.Return

type MockSpanStoreLastSpanIdCall

type MockSpanStoreLastSpanIdCall struct {
	*gomock.Call
}

MockSpanStoreLastSpanIdCall wrap *gomock.Call

func (*MockSpanStoreLastSpanIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockSpanStoreLastSpanIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSpanStoreLastSpanIdCall) Return

Return rewrite *gomock.Call.Return

type MockSpanStoreMockRecorder

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

MockSpanStoreMockRecorder is the mock recorder for MockSpanStore.

func (*MockSpanStoreMockRecorder) GetSpan

func (mr *MockSpanStoreMockRecorder) GetSpan(ctx, spanId any) *MockSpanStoreGetSpanCall

GetSpan indicates an expected call of GetSpan.

func (*MockSpanStoreMockRecorder) LastSpanId

LastSpanId indicates an expected call of LastSpanId.

func (*MockSpanStoreMockRecorder) PutSpan

func (mr *MockSpanStoreMockRecorder) PutSpan(ctx, span any) *MockSpanStorePutSpanCall

PutSpan indicates an expected call of PutSpan.

type MockSpanStorePutSpanCall

type MockSpanStorePutSpanCall struct {
	*gomock.Call
}

MockSpanStorePutSpanCall wrap *gomock.Call

func (*MockSpanStorePutSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockSpanStorePutSpanCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSpanStorePutSpanCall) Return

Return rewrite *gomock.Call.Return

type MockSpanWriter

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

MockSpanWriter is a mock of SpanWriter interface.

func NewMockSpanWriter

func NewMockSpanWriter(ctrl *gomock.Controller) *MockSpanWriter

NewMockSpanWriter creates a new mock instance.

func (*MockSpanWriter) EXPECT

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

func (*MockSpanWriter) PutSpan

func (m *MockSpanWriter) PutSpan(ctx context.Context, span *Span) error

PutSpan mocks base method.

type MockSpanWriterMockRecorder

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

MockSpanWriterMockRecorder is the mock recorder for MockSpanWriter.

func (*MockSpanWriterMockRecorder) PutSpan

PutSpan indicates an expected call of PutSpan.

type MockSpanWriterPutSpanCall

type MockSpanWriterPutSpanCall struct {
	*gomock.Call
}

MockSpanWriterPutSpanCall wrap *gomock.Call

func (*MockSpanWriterPutSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockSpanWriterPutSpanCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSpanWriterPutSpanCall) Return

Return rewrite *gomock.Call.Return

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) GetCheckpoint

func (m *MockStore) GetCheckpoint(ctx context.Context, checkpointId CheckpointId) (*Checkpoint, error)

GetCheckpoint mocks base method.

func (*MockStore) GetMilestone

func (m *MockStore) GetMilestone(ctx context.Context, milestoneId MilestoneId) (*Milestone, error)

GetMilestone mocks base method.

func (*MockStore) GetSpan

func (m *MockStore) GetSpan(ctx context.Context, spanId SpanId) (*Span, error)

GetSpan mocks base method.

func (*MockStore) LastCheckpointId

func (m *MockStore) LastCheckpointId(ctx context.Context) (CheckpointId, bool, error)

LastCheckpointId mocks base method.

func (*MockStore) LastMilestoneId

func (m *MockStore) LastMilestoneId(ctx context.Context) (MilestoneId, bool, error)

LastMilestoneId mocks base method.

func (*MockStore) LastSpanId

func (m *MockStore) LastSpanId(ctx context.Context) (SpanId, bool, error)

LastSpanId mocks base method.

func (*MockStore) PutCheckpoint

func (m *MockStore) PutCheckpoint(ctx context.Context, checkpointId CheckpointId, checkpoint *Checkpoint) error

PutCheckpoint mocks base method.

func (*MockStore) PutMilestone

func (m *MockStore) PutMilestone(ctx context.Context, milestoneId MilestoneId, milestone *Milestone) error

PutMilestone mocks base method.

func (*MockStore) PutSpan

func (m *MockStore) PutSpan(ctx context.Context, span *Span) error

PutSpan mocks base method.

type MockStoreGetCheckpointCall

type MockStoreGetCheckpointCall struct {
	*gomock.Call
}

MockStoreGetCheckpointCall wrap *gomock.Call

func (*MockStoreGetCheckpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockStoreGetCheckpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStoreGetCheckpointCall) Return

Return rewrite *gomock.Call.Return

type MockStoreGetMilestoneCall

type MockStoreGetMilestoneCall struct {
	*gomock.Call
}

MockStoreGetMilestoneCall wrap *gomock.Call

func (*MockStoreGetMilestoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockStoreGetMilestoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStoreGetMilestoneCall) Return

Return rewrite *gomock.Call.Return

type MockStoreGetSpanCall

type MockStoreGetSpanCall struct {
	*gomock.Call
}

MockStoreGetSpanCall wrap *gomock.Call

func (*MockStoreGetSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockStoreGetSpanCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStoreGetSpanCall) Return

func (c *MockStoreGetSpanCall) Return(arg0 *Span, arg1 error) *MockStoreGetSpanCall

Return rewrite *gomock.Call.Return

type MockStoreLastCheckpointIdCall

type MockStoreLastCheckpointIdCall struct {
	*gomock.Call
}

MockStoreLastCheckpointIdCall wrap *gomock.Call

func (*MockStoreLastCheckpointIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockStoreLastCheckpointIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStoreLastCheckpointIdCall) Return

Return rewrite *gomock.Call.Return

type MockStoreLastMilestoneIdCall

type MockStoreLastMilestoneIdCall struct {
	*gomock.Call
}

MockStoreLastMilestoneIdCall wrap *gomock.Call

func (*MockStoreLastMilestoneIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockStoreLastMilestoneIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStoreLastMilestoneIdCall) Return

Return rewrite *gomock.Call.Return

type MockStoreLastSpanIdCall

type MockStoreLastSpanIdCall struct {
	*gomock.Call
}

MockStoreLastSpanIdCall wrap *gomock.Call

func (*MockStoreLastSpanIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockStoreLastSpanIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStoreLastSpanIdCall) Return

func (c *MockStoreLastSpanIdCall) Return(arg0 SpanId, arg1 bool, arg2 error) *MockStoreLastSpanIdCall

Return rewrite *gomock.Call.Return

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) GetCheckpoint

func (mr *MockStoreMockRecorder) GetCheckpoint(ctx, checkpointId any) *MockStoreGetCheckpointCall

GetCheckpoint indicates an expected call of GetCheckpoint.

func (*MockStoreMockRecorder) GetMilestone

func (mr *MockStoreMockRecorder) GetMilestone(ctx, milestoneId any) *MockStoreGetMilestoneCall

GetMilestone indicates an expected call of GetMilestone.

func (*MockStoreMockRecorder) GetSpan

func (mr *MockStoreMockRecorder) GetSpan(ctx, spanId any) *MockStoreGetSpanCall

GetSpan indicates an expected call of GetSpan.

func (*MockStoreMockRecorder) LastCheckpointId

func (mr *MockStoreMockRecorder) LastCheckpointId(ctx any) *MockStoreLastCheckpointIdCall

LastCheckpointId indicates an expected call of LastCheckpointId.

func (*MockStoreMockRecorder) LastMilestoneId

func (mr *MockStoreMockRecorder) LastMilestoneId(ctx any) *MockStoreLastMilestoneIdCall

LastMilestoneId indicates an expected call of LastMilestoneId.

func (*MockStoreMockRecorder) LastSpanId

func (mr *MockStoreMockRecorder) LastSpanId(ctx any) *MockStoreLastSpanIdCall

LastSpanId indicates an expected call of LastSpanId.

func (*MockStoreMockRecorder) PutCheckpoint

func (mr *MockStoreMockRecorder) PutCheckpoint(ctx, checkpointId, checkpoint any) *MockStorePutCheckpointCall

PutCheckpoint indicates an expected call of PutCheckpoint.

func (*MockStoreMockRecorder) PutMilestone

func (mr *MockStoreMockRecorder) PutMilestone(ctx, milestoneId, milestone any) *MockStorePutMilestoneCall

PutMilestone indicates an expected call of PutMilestone.

func (*MockStoreMockRecorder) PutSpan

func (mr *MockStoreMockRecorder) PutSpan(ctx, span any) *MockStorePutSpanCall

PutSpan indicates an expected call of PutSpan.

type MockStorePutCheckpointCall

type MockStorePutCheckpointCall struct {
	*gomock.Call
}

MockStorePutCheckpointCall wrap *gomock.Call

func (*MockStorePutCheckpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockStorePutCheckpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStorePutCheckpointCall) Return

Return rewrite *gomock.Call.Return

type MockStorePutMilestoneCall

type MockStorePutMilestoneCall struct {
	*gomock.Call
}

MockStorePutMilestoneCall wrap *gomock.Call

func (*MockStorePutMilestoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockStorePutMilestoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStorePutMilestoneCall) Return

Return rewrite *gomock.Call.Return

type MockStorePutSpanCall

type MockStorePutSpanCall struct {
	*gomock.Call
}

MockStorePutSpanCall wrap *gomock.Call

func (*MockStorePutSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockStorePutSpanCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStorePutSpanCall) Return

Return rewrite *gomock.Call.Return

type Mockreader

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

Mockreader is a mock of reader interface.

func NewMockreader

func NewMockreader(ctrl *gomock.Controller) *Mockreader

NewMockreader creates a new mock instance.

func (*Mockreader) BorStartEventID

func (m *Mockreader) BorStartEventID(ctx context.Context, tx kv.Tx, hash common.Hash, blockNum uint64) (uint64, error)

BorStartEventID mocks base method.

func (*Mockreader) Checkpoint

func (m *Mockreader) Checkpoint(ctx context.Context, tx kv.Getter, checkpointId uint64) ([]byte, error)

Checkpoint mocks base method.

func (*Mockreader) EXPECT

func (m *Mockreader) EXPECT() *MockreaderMockRecorder

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

func (*Mockreader) EventLookup

func (m *Mockreader) EventLookup(ctx context.Context, tx kv.Getter, txnHash common.Hash) (uint64, bool, error)

EventLookup mocks base method.

func (*Mockreader) EventsByBlock

func (m *Mockreader) EventsByBlock(ctx context.Context, tx kv.Tx, hash common.Hash, blockNum uint64) ([]rlp.RawValue, error)

EventsByBlock mocks base method.

func (*Mockreader) LastCheckpointId

func (m *Mockreader) LastCheckpointId(ctx context.Context, tx kv.Tx) (uint64, bool, error)

LastCheckpointId mocks base method.

func (*Mockreader) LastEventId

func (m *Mockreader) LastEventId(ctx context.Context, tx kv.Tx) (uint64, bool, error)

LastEventId mocks base method.

func (*Mockreader) LastFrozenEventId

func (m *Mockreader) LastFrozenEventId() uint64

LastFrozenEventId mocks base method.

func (*Mockreader) LastFrozenSpanId

func (m *Mockreader) LastFrozenSpanId() uint64

LastFrozenSpanId mocks base method.

func (*Mockreader) LastMilestoneId

func (m *Mockreader) LastMilestoneId(ctx context.Context, tx kv.Tx) (uint64, bool, error)

LastMilestoneId mocks base method.

func (*Mockreader) LastSpanId

func (m *Mockreader) LastSpanId(ctx context.Context, tx kv.Tx) (uint64, bool, error)

LastSpanId mocks base method.

func (*Mockreader) Milestone

func (m *Mockreader) Milestone(ctx context.Context, tx kv.Getter, milestoneId uint64) ([]byte, error)

Milestone mocks base method.

func (*Mockreader) Span

func (m *Mockreader) Span(ctx context.Context, tx kv.Getter, spanId uint64) ([]byte, error)

Span mocks base method.

type MockreaderBorStartEventIDCall

type MockreaderBorStartEventIDCall struct {
	*gomock.Call
}

MockreaderBorStartEventIDCall wrap *gomock.Call

func (*MockreaderBorStartEventIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderBorStartEventIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderBorStartEventIDCall) Return

Return rewrite *gomock.Call.Return

type MockreaderCheckpointCall

type MockreaderCheckpointCall struct {
	*gomock.Call
}

MockreaderCheckpointCall wrap *gomock.Call

func (*MockreaderCheckpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderCheckpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderCheckpointCall) Return

Return rewrite *gomock.Call.Return

type MockreaderEventLookupCall

type MockreaderEventLookupCall struct {
	*gomock.Call
}

MockreaderEventLookupCall wrap *gomock.Call

func (*MockreaderEventLookupCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderEventLookupCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderEventLookupCall) Return

Return rewrite *gomock.Call.Return

type MockreaderEventsByBlockCall

type MockreaderEventsByBlockCall struct {
	*gomock.Call
}

MockreaderEventsByBlockCall wrap *gomock.Call

func (*MockreaderEventsByBlockCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderEventsByBlockCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderEventsByBlockCall) Return

Return rewrite *gomock.Call.Return

type MockreaderLastCheckpointIdCall

type MockreaderLastCheckpointIdCall struct {
	*gomock.Call
}

MockreaderLastCheckpointIdCall wrap *gomock.Call

func (*MockreaderLastCheckpointIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderLastCheckpointIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderLastCheckpointIdCall) Return

Return rewrite *gomock.Call.Return

type MockreaderLastEventIdCall

type MockreaderLastEventIdCall struct {
	*gomock.Call
}

MockreaderLastEventIdCall wrap *gomock.Call

func (*MockreaderLastEventIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderLastEventIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderLastEventIdCall) Return

Return rewrite *gomock.Call.Return

type MockreaderLastFrozenEventIdCall

type MockreaderLastFrozenEventIdCall struct {
	*gomock.Call
}

MockreaderLastFrozenEventIdCall wrap *gomock.Call

func (*MockreaderLastFrozenEventIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderLastFrozenEventIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderLastFrozenEventIdCall) Return

Return rewrite *gomock.Call.Return

type MockreaderLastFrozenSpanIdCall

type MockreaderLastFrozenSpanIdCall struct {
	*gomock.Call
}

MockreaderLastFrozenSpanIdCall wrap *gomock.Call

func (*MockreaderLastFrozenSpanIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderLastFrozenSpanIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderLastFrozenSpanIdCall) Return

Return rewrite *gomock.Call.Return

type MockreaderLastMilestoneIdCall

type MockreaderLastMilestoneIdCall struct {
	*gomock.Call
}

MockreaderLastMilestoneIdCall wrap *gomock.Call

func (*MockreaderLastMilestoneIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderLastMilestoneIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderLastMilestoneIdCall) Return

Return rewrite *gomock.Call.Return

type MockreaderLastSpanIdCall

type MockreaderLastSpanIdCall struct {
	*gomock.Call
}

MockreaderLastSpanIdCall wrap *gomock.Call

func (*MockreaderLastSpanIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderLastSpanIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderLastSpanIdCall) Return

func (c *MockreaderLastSpanIdCall) Return(arg0 uint64, arg1 bool, arg2 error) *MockreaderLastSpanIdCall

Return rewrite *gomock.Call.Return

type MockreaderMilestoneCall

type MockreaderMilestoneCall struct {
	*gomock.Call
}

MockreaderMilestoneCall wrap *gomock.Call

func (*MockreaderMilestoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderMilestoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderMilestoneCall) Return

func (c *MockreaderMilestoneCall) Return(arg0 []byte, arg1 error) *MockreaderMilestoneCall

Return rewrite *gomock.Call.Return

type MockreaderMockRecorder

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

MockreaderMockRecorder is the mock recorder for Mockreader.

func (*MockreaderMockRecorder) BorStartEventID

func (mr *MockreaderMockRecorder) BorStartEventID(ctx, tx, hash, blockNum any) *MockreaderBorStartEventIDCall

BorStartEventID indicates an expected call of BorStartEventID.

func (*MockreaderMockRecorder) Checkpoint

func (mr *MockreaderMockRecorder) Checkpoint(ctx, tx, checkpointId any) *MockreaderCheckpointCall

Checkpoint indicates an expected call of Checkpoint.

func (*MockreaderMockRecorder) EventLookup

func (mr *MockreaderMockRecorder) EventLookup(ctx, tx, txnHash any) *MockreaderEventLookupCall

EventLookup indicates an expected call of EventLookup.

func (*MockreaderMockRecorder) EventsByBlock

func (mr *MockreaderMockRecorder) EventsByBlock(ctx, tx, hash, blockNum any) *MockreaderEventsByBlockCall

EventsByBlock indicates an expected call of EventsByBlock.

func (*MockreaderMockRecorder) LastCheckpointId

func (mr *MockreaderMockRecorder) LastCheckpointId(ctx, tx any) *MockreaderLastCheckpointIdCall

LastCheckpointId indicates an expected call of LastCheckpointId.

func (*MockreaderMockRecorder) LastEventId

func (mr *MockreaderMockRecorder) LastEventId(ctx, tx any) *MockreaderLastEventIdCall

LastEventId indicates an expected call of LastEventId.

func (*MockreaderMockRecorder) LastFrozenEventId

LastFrozenEventId indicates an expected call of LastFrozenEventId.

func (*MockreaderMockRecorder) LastFrozenSpanId

LastFrozenSpanId indicates an expected call of LastFrozenSpanId.

func (*MockreaderMockRecorder) LastMilestoneId

func (mr *MockreaderMockRecorder) LastMilestoneId(ctx, tx any) *MockreaderLastMilestoneIdCall

LastMilestoneId indicates an expected call of LastMilestoneId.

func (*MockreaderMockRecorder) LastSpanId

func (mr *MockreaderMockRecorder) LastSpanId(ctx, tx any) *MockreaderLastSpanIdCall

LastSpanId indicates an expected call of LastSpanId.

func (*MockreaderMockRecorder) Milestone

func (mr *MockreaderMockRecorder) Milestone(ctx, tx, milestoneId any) *MockreaderMilestoneCall

Milestone indicates an expected call of Milestone.

func (*MockreaderMockRecorder) Span

func (mr *MockreaderMockRecorder) Span(ctx, tx, spanId any) *MockreaderSpanCall

Span indicates an expected call of Span.

type MockreaderSpanCall

type MockreaderSpanCall struct {
	*gomock.Call
}

MockreaderSpanCall wrap *gomock.Call

func (*MockreaderSpanCall) Do

Do rewrite *gomock.Call.Do

func (*MockreaderSpanCall) DoAndReturn

func (c *MockreaderSpanCall) DoAndReturn(f func(context.Context, kv.Getter, uint64) ([]byte, error)) *MockreaderSpanCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockreaderSpanCall) Return

func (c *MockreaderSpanCall) Return(arg0 []byte, arg1 error) *MockreaderSpanCall

Return rewrite *gomock.Call.Return

type Request

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

type Span

type Span struct {
	Id                SpanId              `json:"span_id" yaml:"span_id"`
	StartBlock        uint64              `json:"start_block" yaml:"start_block"`
	EndBlock          uint64              `json:"end_block" yaml:"end_block"`
	ValidatorSet      valset.ValidatorSet `json:"validator_set,omitempty" yaml:"validator_set"`
	SelectedProducers []valset.Validator  `json:"selected_producers,omitempty" yaml:"selected_producers"`
	ChainID           string              `json:"bor_chain_id,omitempty" yaml:"bor_chain_id"`
}

func (*Span) CmpRange

func (s *Span) CmpRange(n uint64) int

func (*Span) Less

func (hs *Span) Less(other btree.Item) bool

type SpanId

type SpanId uint64

func SpanIdAt

func SpanIdAt(blockNum uint64) SpanId

SpanIdAt returns the corresponding span id for the given block number.

type SpanReader

type SpanReader interface {
	LastSpanId(ctx context.Context) (SpanId, bool, error)
	GetSpan(ctx context.Context, spanId SpanId) (*Span, error)
}

type SpanResponse

type SpanResponse struct {
	Height string `json:"height"`
	Result Span   `json:"result"`
}

type SpanStore

type SpanStore interface {
	SpanReader
	SpanWriter
}

type SpanWriter

type SpanWriter interface {
	PutSpan(ctx context.Context, span *Span) error
}

type StateSyncEventResponse

type StateSyncEventResponse struct {
	Height string              `json:"height"`
	Result EventRecordWithTime `json:"result"`
}

type StateSyncEventsResponse

type StateSyncEventsResponse struct {
	Height string                 `json:"height"`
	Result []*EventRecordWithTime `json:"result"`
}

type Store

type Store interface {
	SpanStore
	MilestoneStore
	CheckpointStore
}

type Waypoint

type Waypoint interface {
	fmt.Stringer
	StartBlock() *big.Int
	EndBlock() *big.Int
	RootHash() libcommon.Hash
	Timestamp() uint64
	Length() uint64
	CmpRange(n uint64) int
}

type WaypointFields

type WaypointFields struct {
	Proposer   libcommon.Address `json:"proposer"`
	StartBlock *big.Int          `json:"start_block"`
	EndBlock   *big.Int          `json:"end_block"`
	RootHash   libcommon.Hash    `json:"root_hash"`
	ChainID    string            `json:"bor_chain_id"`
	Timestamp  uint64            `json:"timestamp"`
}

func (*WaypointFields) CmpRange

func (a *WaypointFields) CmpRange(n uint64) int

func (*WaypointFields) Length

func (a *WaypointFields) Length() uint64

type Waypoints

type Waypoints []Waypoint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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