process

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHyperBlockProcessor

func NewHyperBlockProcessor(args *HyperBlockProcessorArgs) (*hyperBlockProcessor, error)

NewHyperBlockProcessor will create a new instance of an hyper block processor

Types

type AlteredAccountsHandler

type AlteredAccountsHandler interface {
	ProcessAccounts(apiAlteredAccounts []*outport.AlteredAccount) ([]*schema.AccountBalanceUpdate, error)
}

AlteredAccountsHandler defines what an account processor shall do

type EpochStartInfoHandler

type EpochStartInfoHandler interface {
	ProcessEpochStartInfo(apiEpochInfo *api.EpochStartInfo) (*schema.EpochStartInfo, error)
}

EpochStartInfoHandler defines what epoch start info processor shall do

type HyperBlockProcessorArgs

type HyperBlockProcessorArgs struct {
	TransactionHandler    TransactionHandler
	ShardBlockHandler     ShardBlocksHandler
	EpochStartInfoHandler EpochStartInfoHandler
}

HyperBlockProcessorArgs holds all input dependencies required by hyper block processor in order to create a new hyper block processor

type LogHandler

type LogHandler interface {
	ProcessLog(log *transaction.ApiLogs) *schema.Log
}

LogHandler defines what a log processor shall do

type ReceiptHandler

type ReceiptHandler interface {
	ProcessReceipt(apiReceipt *transaction.ApiReceipt) (*schema.Receipt, error)
}

ReceiptHandler defines what a receipt processor shall do

type ShardBlocksHandler

type ShardBlocksHandler interface {
	ProcessShardBlocks(apiBlocks []*api.NotarizedBlock) ([]*schema.ShardBlocks, error)
}

ShardBlocksHandler defines what shard blocks processor shall do

type TransactionHandler

type TransactionHandler interface {
	ProcessTransactions(apiTransactions []*transaction.ApiTransactionResult) ([]*schema.Transaction, error)
}

TransactionHandler defines what a transaction processor shall do

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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