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)
}
func NewGetBlockDataByBlockTransactionTimestampUseCase ¶
func NewGetBlockDataByBlockTransactionTimestampUseCase(config *config.Configuration, logger *slog.Logger, repo domain.BlockDataRepository) GetBlockDataByBlockTransactionTimestampUseCase
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)
}
func NewListBlockDataByChainIDUseCase ¶
func NewListBlockDataByChainIDUseCase(config *config.Configuration, logger *slog.Logger, repo domain.BlockDataRepository) ListBlockDataByChainIDUseCase
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
Click to show internal directories.
Click to hide internal directories.