heimdallsim

package
v1.9.7-0...-42bb602 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeimdallSimulator

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

func NewHeimdallSimulator

func NewHeimdallSimulator(ctx context.Context, snapDir string, logger log.Logger, iterations []uint64) (*HeimdallSimulator, error)

func (*HeimdallSimulator) Close

func (h *HeimdallSimulator) Close()

func (*HeimdallSimulator) FetchCheckpoint

func (h *HeimdallSimulator) FetchCheckpoint(ctx context.Context, number int64) (*heimdall.Checkpoint, error)

func (*HeimdallSimulator) FetchCheckpointCount

func (h *HeimdallSimulator) FetchCheckpointCount(ctx context.Context) (int64, error)

func (*HeimdallSimulator) FetchCheckpoints

func (h *HeimdallSimulator) FetchCheckpoints(ctx context.Context, page uint64, limit uint64) ([]*heimdall.Checkpoint, error)

func (*HeimdallSimulator) FetchFirstMilestoneNum

func (h *HeimdallSimulator) FetchFirstMilestoneNum(ctx context.Context) (int64, error)

func (*HeimdallSimulator) FetchLastNoAckMilestone

func (h *HeimdallSimulator) FetchLastNoAckMilestone(ctx context.Context) (string, error)

func (*HeimdallSimulator) FetchLatestSpan

func (h *HeimdallSimulator) FetchLatestSpan(ctx context.Context) (*heimdall.Span, error)

func (*HeimdallSimulator) FetchMilestone

func (h *HeimdallSimulator) FetchMilestone(ctx context.Context, number int64) (*heimdall.Milestone, error)

func (*HeimdallSimulator) FetchMilestoneCount

func (h *HeimdallSimulator) FetchMilestoneCount(ctx context.Context) (int64, error)

func (*HeimdallSimulator) FetchMilestoneID

func (h *HeimdallSimulator) FetchMilestoneID(ctx context.Context, milestoneID string) error

func (*HeimdallSimulator) FetchNoAckMilestone

func (h *HeimdallSimulator) FetchNoAckMilestone(ctx context.Context, milestoneID string) error

func (*HeimdallSimulator) FetchSpan

func (h *HeimdallSimulator) FetchSpan(ctx context.Context, spanID uint64) (*heimdall.Span, error)

func (*HeimdallSimulator) FetchSpans

func (h *HeimdallSimulator) FetchSpans(ctx context.Context, page uint64, limit uint64) ([]*heimdall.Span, error)

func (*HeimdallSimulator) FetchStateSyncEvent

func (h *HeimdallSimulator) FetchStateSyncEvent(ctx context.Context, id uint64) (*heimdall.EventRecordWithTime, error)

func (*HeimdallSimulator) FetchStateSyncEvents

func (h *HeimdallSimulator) FetchStateSyncEvents(_ context.Context, fromId uint64, to time.Time, limit int) ([]*heimdall.EventRecordWithTime, error)

func (*HeimdallSimulator) FetchStatus

func (h *HeimdallSimulator) FetchStatus(ctx context.Context) (*heimdall.Status, error)

func (*HeimdallSimulator) Next

func (h *HeimdallSimulator) Next()

Next moves to the next iteration

Jump to

Keyboard shortcuts

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