repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const IndexName = "veindexer"

Variables

This section is empty.

Functions

This section is empty.

Types

type VEIndexerRepository

type VEIndexerRepository struct {
	*bun.DB
	indexerrepo.IMetaRepository
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(indexerDB common.IndexerDB, sqlTimeout time.Duration) VEIndexerRepository

func (*VEIndexerRepository) DeleteOldValidatorExtensionVoteList

func (repo *VEIndexerRepository) DeleteOldValidatorExtensionVoteList(chainID, retentionPeriod string) (
	int64,
	error,
)

func (*VEIndexerRepository) InsertValidatorExtensionVoteList

func (repo *VEIndexerRepository) InsertValidatorExtensionVoteList(
	chainInfoID int64,
	indexPointerHeight int64,
	ValidatorVoteList []model.ValidatorExtensionVote,
) error

func (*VEIndexerRepository) SelectRecentValidatorExtensionVoteList

func (repo *VEIndexerRepository) SelectRecentValidatorExtensionVoteList(chainID string) ([]model.RecentValidatorExtensionVote, error)

Jump to

Keyboard shortcuts

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