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 = "voteindexer"

Variables

This section is empty.

Functions

This section is empty.

Types

type VoteIndexerRepository

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

func NewRepository

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

func (*VoteIndexerRepository) DeleteOldValidatorVoteList

func (repo *VoteIndexerRepository) DeleteOldValidatorVoteList(chainID, retentionPeriod string) (
	int64,
	error,
)

func (*VoteIndexerRepository) InsertValidatorVoteList

func (repo *VoteIndexerRepository) InsertValidatorVoteList(
	chainInfoID int64,
	indexPointerHeight int64,
	ValidatorVoteList []model.ValidatorVote,
) error

func (*VoteIndexerRepository) SelectRecentMissValidatorVoteList

func (repo *VoteIndexerRepository) SelectRecentMissValidatorVoteList(chainID string) ([]model.RecentValidatorVote, error)

Jump to

Keyboard shortcuts

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