blockdata

package
v0.0.0-...-92c45cb Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetBlockDataByBlockTransactionTimestampUseCase

type GetBlockDataByBlockTransactionTimestampUseCase interface {
	Execute(ctx context.Context, nonce uint64) (*domain.BlockData, error)
}

type GetBlockDataUseCase

type GetBlockDataUseCase interface {
	ExecuteByHash(ctx context.Context, hash string) (*domain.BlockData, error)
	ExecuteByHeaderNumber(ctx context.Context, headerNumber *big.Int) (*domain.BlockData, error)
}

func NewGetBlockDataUseCase

func NewGetBlockDataUseCase(config *config.Configuration, logger *slog.Logger, repo domain.BlockDataRepository) GetBlockDataUseCase

type ListBlockDataByChainIDUseCase

type ListBlockDataByChainIDUseCase interface {
	Execute(ctx context.Context) ([]*domain.BlockData, error)
}

type UpsertBlockDataUseCase

type UpsertBlockDataUseCase interface {
	Execute(ctx context.Context, hash string, header *domain.BlockHeader, headerSignature []byte, trans []domain.BlockTransaction, validator *domain.Validator) error
}

func NewUpsertBlockDataUseCase

func NewUpsertBlockDataUseCase(config *config.Configuration, logger *slog.Logger, repo domain.BlockDataRepository) UpsertBlockDataUseCase

Jump to

Keyboard shortcuts

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