usecase

package
v2.0.0-...-d626aa2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockTransactionsHandler

type BlockTransactionsHandler[TxIn any] struct {
	// contains filtered or unexported fields
}

func NewBlockTransactionsHandler

func NewBlockTransactionsHandler[TxIn any](
	cfg configs.ChainConfig,
	rpc rpc.Client[TxIn],
	transactionPub bus.Publisher[entities.Transaction[TxIn]],
	blockPub bus.Publisher[entities.Block],
	inflightState state.MapState[entities.BlockHash, bool],
	metrics BlockTransactionsHandlerMetrics,
) *BlockTransactionsHandler[TxIn]

func (*BlockTransactionsHandler[TxIn]) Handle

func (uc *BlockTransactionsHandler[TxIn]) Handle(ctx context.Context, block *entities.Block) error

type BlockTransactionsHandlerMetrics

type BlockTransactionsHandlerMetrics struct {
	RequestToNodeCounter metrics.RequestToNodeCounter
}

type BlockchainDigger

type BlockchainDigger[TxIn any] struct {
	// contains filtered or unexported fields
}

func NewBlockchainDigger

func NewBlockchainDigger[TxIn any](
	cfg configs.ChainConfig,
	blockState state.SliceState[entities.BlockHash],
	inflightState state.MapState[entities.BlockHash, bool],
	rpcClient rpc.Client[TxIn],
	workerCh runner.ChanWrite[*entities.Block],
	metrics BlocksJobMetrics,
) *BlockchainDigger[TxIn]

func (*BlockchainDigger[TxIn]) Handle

func (uc *BlockchainDigger[TxIn]) Handle(ctx context.Context) error

type BlocksJobMetrics

type BlocksJobMetrics struct {
	RequestToNodeCounter metrics.RequestToNodeCounter
}

type BlocksPersister

type BlocksPersister struct {
	// contains filtered or unexported fields
}

func (*BlocksPersister) Handle

func (uc *BlocksPersister) Handle(ctx context.Context) error

type MempoolDigger

type MempoolDigger[TxIn any] struct {
	// contains filtered or unexported fields
}

func NewMempoolDigger

func NewMempoolDigger[TxIn any](
	cfg configs.ChainConfig,
	rpcClient rpc.Client[TxIn],
	txIDCh runner.ChanWrite[entities.TxID],
	oldMempool []entities.TxID,
	metrics MempoolJobMetrics,
) *MempoolDigger[TxIn]

func (*MempoolDigger[TxIn]) Handle

func (uc *MempoolDigger[TxIn]) Handle(ctx context.Context) error

type MempoolJobMetrics

type MempoolJobMetrics struct {
	RequestToNodeCounter metrics.RequestToNodeCounter
}

type TxIDHandler

type TxIDHandler[TxIn any] struct {
	// contains filtered or unexported fields
}

func NewTxIDHandler

func NewTxIDHandler[TxIn any](
	cfg configs.ChainConfig,
	rpcClient rpc.Client[TxIn],
	publisher bus.Publisher[entities.Transaction[TxIn]],
	metrics TxIDHandlerMetrics,
) *TxIDHandler[TxIn]

func (*TxIDHandler[TxIn]) Handle

func (uc *TxIDHandler[TxIn]) Handle(ctx context.Context, txid entities.TxID) error

type TxIDHandlerMetrics

type TxIDHandlerMetrics struct {
	RequestToNodeCounter metrics.RequestToNodeCounter
}

Jump to

Keyboard shortcuts

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