iface

package
v0.0.25-debug-fork-deb... Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusInfoAccessDatabase

type ConsensusInfoAccessDatabase interface {
	ReadOnlyConsensusInfoDatabase

	SaveConsensusInfo(ctx context.Context, consensusInfo *types.MinimalEpochConsensusInfo) error
	SaveLatestEpoch(ctx context.Context) error
}

ConsensusInfoAccessDatabase

type Database

Database interface with full access.

type PanHeaderAccessDatabase

type PanHeaderAccessDatabase interface {
	ReadOnlyPanHeaderAccessDatabase

	SavePandoraHeaderHash(slot uint64, headerHash *types.HeaderHash) error
	SaveLatestPandoraSlot() error
	SaveLatestPandoraHeaderHash() error
}

PanHeaderAccessDatabase

type ReadOnlyConsensusInfoDatabase

type ReadOnlyConsensusInfoDatabase interface {
	ConsensusInfo(ctx context.Context, epoch uint64) (*types.MinimalEpochConsensusInfo, error)
	ConsensusInfos(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfo, error)
	LatestSavedEpoch() uint64
	GetLatestEpoch() uint64
}

ReadOnlyDatabase defines a struct which only has read access to database methods.

type ReadOnlyPanHeaderAccessDatabase

type ReadOnlyPanHeaderAccessDatabase interface {
	PandoraHeaderHash(slot uint64) (*types.HeaderHash, error)
	PandoraHeaderHashes(fromSlot uint64, limit uint64) ([]*types.HeaderHash, error)
	LatestSavedPandoraSlot() uint64
	LatestSavedPandoraHeaderHash() common.Hash
	GetLatestHeaderHash() common.Hash
}

ReadOnlyPanHeaderAccessDatabase

type ReadOnlyVanHeaderAccessDatabase

type ReadOnlyVanHeaderAccessDatabase interface {
	VanguardHeaderHash(slot uint64) (*types.HeaderHash, error)
	VanguardHeaderHashes(fromSlot uint64, limit uint64) ([]*types.HeaderHash, error)
	LatestSavedVanguardSlot() uint64
	LatestSavedVanguardHeaderHash() common.Hash
	GetLatestHeaderHash() common.Hash
}

ReadOnlyVanHeaderAccessDatabase

type RealmAccessDatabase

type RealmAccessDatabase interface {
	RealmReadOnlyAccessDatabase

	SaveLatestVerifiedRealmSlot(slot uint64) (err error)
}

type RealmReadOnlyAccessDatabase

type RealmReadOnlyAccessDatabase interface {
	LatestVerifiedRealmSlot() (slot uint64)
}

type VanHeaderAccessDatabase

type VanHeaderAccessDatabase interface {
	ReadOnlyVanHeaderAccessDatabase

	SaveVanguardHeaderHash(slot uint64, headerHash *types.HeaderHash) error
	SaveLatestVanguardSlot() error
	SaveLatestVanguardHeaderHash() error
}

Jump to

Keyboard shortcuts

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