Documentation ¶
Index ¶
- Constants
- Variables
- func BlockToSequence(syncable *model.Syncable, rawBlock *blockpb.Block, ...) (*model.BlockSeq, error)
- func DebondingDelegationToSequence(syncable *model.Syncable, rawState *statepb.State) ([]model.DebondingDelegationSeq, error)
- func DelegationToSequence(syncable *model.Syncable, rawState *statepb.State) ([]model.DelegationSeq, error)
- func NewAccountAggCreatorTask(db *store.Store) *accountAggCreatorTask
- func NewBackfillSource(cfg *config.Config, db *store.Store, client *client.Client, civ int64) (*backfillSource, error)
- func NewBlockFetcherTask(client *client.Client) pipeline.Task
- func NewBlockParserTask() *blockParserTask
- func NewBlockSeqCreatorTask(db *store.Store) *blockSeqCreatorTask
- func NewBlockSeqPersistorTask(db *store.Store) pipeline.Task
- func NewConfigParser(file string) (*configParser, error)
- func NewDebondingDelegationsSeqCreatorTask(db *store.Store) *debondingDelegationSeqCreatorTask
- func NewDelegationsSeqCreatorTask(db *store.Store) *delegationSeqCreatorTask
- func NewHeightMetaRetrieverTask(c *client.Client) pipeline.Task
- func NewIndexSource(cfg *config.Config, db *store.Store, client *client.Client, startHeight int64, ...) (*indexSource, error)
- func NewLogger() pipeline.Logger
- func NewMainSyncerTask(db *store.Store) pipeline.Task
- func NewPayloadFactory() *payloadFactory
- func NewPipeline(cfg *config.Config, db *store.Store, client *client.Client) (*indexingPipeline, error)
- func NewSink(db *store.Store, versionNumber int64) *sink
- func NewStakingSeqCreatorTask(db *store.Store) *stakingSeqCreatorTask
- func NewStakingStateFetcherTask(client *client.Client) pipeline.Task
- func NewStateFetcherTask(client *client.Client) pipeline.Task
- func NewSyncerPersistorTask(db *store.Store) pipeline.Task
- func NewSystemEventCreatorTask(cfg *config.Config, s SystemEventCreatorStore) *systemEventCreatorTask
- func NewSystemEventPersistorTask(db *store.Store) pipeline.Task
- func NewTransactionFetcherTask(client *client.Client) pipeline.Task
- func NewTransactionSeqCreatorTask(db *store.Store) *transactionSeqCreatorTask
- func NewValidatorAggCreatorTask(db *store.Store) *validatorAggCreatorTask
- func NewValidatorAggPersistorTask(db *store.Store) pipeline.Task
- func NewValidatorFetcherTask(client *client.Client) pipeline.Task
- func NewValidatorSeqCreatorTask(db *store.Store) *validatorSeqCreatorTask
- func NewValidatorSeqPersistorTask(db *store.Store) pipeline.Task
- func NewValidatorsParserTask() *validatorsParserTask
- func StakingToSequence(syncable *model.Syncable, rawState *statepb.State) (*model.StakingSeq, error)
- func TransactionToSequence(syncable *model.Syncable, rawTransactions []*transactionpb.Transaction) ([]model.TransactionSeq, error)
- func ValidatorToSequence(syncable *model.Syncable, rawValidators []*validatorpb.Validator, ...) ([]model.ValidatorSeq, error)
- type BackfillConfig
- type BlockFetcherTask
- type ConfigParser
- type HeightMeta
- type IndexConfig
- type ParsedBlockData
- type ParsedValidatorsData
- type RunConfig
- type StakingStateFetcherTask
- type StateFetcherTask
- type SystemEventCreatorStore
- type TransactionFetcherTask
- type ValidatorFetcherTask
Constants ¶
View Source
const ( AccountAggCreatorTaskName = "AccountAggCreator" ValidatorAggCreatorTaskName = "ValidatorAggCreator" )
View Source
const ( IndexTargetBlockSequences = iota + 1 IndexTargetValidatorSequences IndexTargetValidatorAggregates IndexTargetSystemEvents )
View Source
const ( BlockFetcherTaskName = "BlockFetcher" StateFetcherTaskName = "StateFetcher" StakingStateFetcherTaskName = "StakingStateFetcher" ValidatorFetcherTaskName = "ValidatorFetcher" TransactionFetcherTaskName = "TransactionFetcher" )
View Source
const ( BlockParserTaskName = "BlockParser" ValidatorsParserTaskName = "ValidatorsParser" )
View Source
const ( SyncerPersistorTaskName = "SyncerPersistor" BlockSeqPersistorTaskName = "BlockSeqPersistor" ValidatorSeqPersistorTaskName = "ValidatorSeqPersistor" ValidatorAggPersistorTaskName = "ValidatorAggPersistor" SystemEventPersistorTaskName = "SystemEventPersistor" )
View Source
const ( CtxReport = "context_report" StageAnalyzer = "AnalyzerStage" )
View Source
const ( BlockSeqCreatorTaskName = "BlockSeqCreator" ValidatorSeqCreatorTaskName = "ValidatorSeqCreator" TransactionSeqCreatorTaskName = "TransactionSeqCreator" StakingSeqCreatorTaskName = "StakingSeqCreator" DelegationSeqCreatorTaskName = "DelegationSeqCreator" DebondingDelegationSeqCreatorTaskName = "DebondingDelegationSeqCreator" )
View Source
const (
HeightMetaRetrieverTaskName = "HeightMetaRetriever"
)
View Source
const (
MainSyncerTaskName = "MainSyncer"
)
View Source
const (
SystemEventCreatorTaskName = "SystemEventCreator"
)
Variables ¶
View Source
var ( ErrActiveEscrowBalanceOutsideOfRange = errors.New("active escrow balance is outside of specified buckets") ErrCommissionOutsideOfRange = errors.New("commission is outside of specified buckets") MaxValidatorSequences int64 = 1000 MissedForMaxThreshold int64 = 50 MissedInRowThreshold int64 = 50 )
View Source
var ( ErrIsPristine = errors.New("cannot run because database is empty") ErrIndexCannotBeRun = errors.New("cannot run index process") ErrBackfillCannotBeRun = errors.New("cannot run backfill process") )
View Source
var (
ErrAccountAggNotValid = errors.New("account aggregator not valid")
)
View Source
var (
ErrNothingToProcess = errors.New("nothing to process")
)
Functions ¶
func BlockToSequence ¶
func DelegationToSequence ¶
func NewBackfillSource ¶ added in v0.4.2
func NewBlockParserTask ¶ added in v0.4.0
func NewBlockParserTask() *blockParserTask
func NewBlockSeqCreatorTask ¶
func NewBlockSeqPersistorTask ¶ added in v0.4.2
func NewConfigParser ¶ added in v0.5.0
func NewIndexSource ¶ added in v0.4.2
func NewPayloadFactory ¶
func NewPayloadFactory() *payloadFactory
func NewPipeline ¶
func NewStakingStateFetcherTask ¶ added in v0.4.0
func NewSyncerPersistorTask ¶ added in v0.4.2
func NewSystemEventCreatorTask ¶ added in v0.5.0
func NewSystemEventCreatorTask(cfg *config.Config, s SystemEventCreatorStore) *systemEventCreatorTask
NewSystemEventCreatorTask creates system events
func NewSystemEventPersistorTask ¶ added in v0.5.0
func NewValidatorAggPersistorTask ¶ added in v0.4.2
func NewValidatorSeqPersistorTask ¶ added in v0.4.2
func NewValidatorsParserTask ¶ added in v0.4.0
func NewValidatorsParserTask() *validatorsParserTask
func StakingToSequence ¶
func TransactionToSequence ¶
func TransactionToSequence(syncable *model.Syncable, rawTransactions []*transactionpb.Transaction) ([]model.TransactionSeq, error)
func ValidatorToSequence ¶
func ValidatorToSequence(syncable *model.Syncable, rawValidators []*validatorpb.Validator, parsedValidators ParsedValidatorsData) ([]model.ValidatorSeq, error)
Types ¶
type BackfillConfig ¶ added in v0.4.2
type BlockFetcherTask ¶
type BlockFetcherTask struct {
// contains filtered or unexported fields
}
func (*BlockFetcherTask) GetName ¶ added in v0.4.0
func (t *BlockFetcherTask) GetName() string
type ConfigParser ¶ added in v0.5.0
type ConfigParser interface { GetCurrentVersionId() int64 GetAllVersionedVersionIds() []int64 IsAnyVersionSequential(versionIds []int64) bool GetAllAvailableTasks() []pipeline.TaskName GetAllVersionedTasks() ([]pipeline.TaskName, error) GetTasksByVersionIds([]int64) ([]pipeline.TaskName, error) GetTasksByTargetIds([]int64) ([]pipeline.TaskName, error) }
type HeightMeta ¶
type IndexConfig ¶ added in v0.5.0
type ParsedBlockData ¶
type ParsedValidatorsData ¶
type ParsedValidatorsData map[string]parsedValidator
type StakingStateFetcherTask ¶ added in v0.4.0
type StakingStateFetcherTask struct {
// contains filtered or unexported fields
}
func (*StakingStateFetcherTask) GetName ¶ added in v0.4.0
func (t *StakingStateFetcherTask) GetName() string
type StateFetcherTask ¶
type StateFetcherTask struct {
// contains filtered or unexported fields
}
func (*StateFetcherTask) GetName ¶ added in v0.4.0
func (t *StateFetcherTask) GetName() string
type SystemEventCreatorStore ¶ added in v0.5.0
type SystemEventCreatorStore interface { FindByHeight(int64) ([]model.ValidatorSeq, error) FindLastByAddress(string, int64) ([]model.ValidatorSeq, error) }
type TransactionFetcherTask ¶
type TransactionFetcherTask struct {
// contains filtered or unexported fields
}
func (*TransactionFetcherTask) GetName ¶ added in v0.4.0
func (t *TransactionFetcherTask) GetName() string
type ValidatorFetcherTask ¶
type ValidatorFetcherTask struct {
// contains filtered or unexported fields
}
func (*ValidatorFetcherTask) GetName ¶ added in v0.4.0
func (t *ValidatorFetcherTask) GetName() string
Source Files ¶
- aggregator_tasks.go
- analyzer_tasks.go
- config_parser.go
- fetcher_tasks.go
- logger.go
- mappers.go
- parser_tasks.go
- payload.go
- persistor_tasks.go
- pipeline.go
- pipeline_options_creator.go
- pipeline_status_checker.go
- report_creator.go
- sequencer_tasks.go
- setup_tasks.go
- sink.go
- source_backfill.go
- source_index.go
- syncer_tasks.go
Click to show internal directories.
Click to hide internal directories.