Documentation ¶
Index ¶
- type BlockHandler
- func (h *BlockHandler) BlockHashToNumber(ctx context.Context, hash common.H256) (*uint64, error)
- func (h *BlockHandler) BlockNumber(ctx context.Context) (*primitives.HexUint, error)
- func (h *BlockHandler) BlockNumberToHash(ctx context.Context, number common.BN64) (*string, error)
- func (h *BlockHandler) Close() error
- func (h *BlockHandler) GetBlockByHash(ctx context.Context, hash common.H256, isFull bool) (*response.Block, error)
- func (h *BlockHandler) GetBlockByNumber(ctx context.Context, number common.BN64, isFull bool) (*response.Block, error)
- func (h *BlockHandler) GetBlockTransactionCountByHash(ctx context.Context, hash common.H256) (*primitives.HexUint, error)
- func (h *BlockHandler) GetBlockTransactionCountByNumber(ctx context.Context, number common.BN64) (*primitives.HexUint, error)
- func (h *BlockHandler) GetFilterChanges(ctx context.Context, filter any) (*[]interface{}, error)
- func (h *BlockHandler) GetFilterLogs(ctx context.Context, filter *dbt.LogFilter) ([]*response.Log, error)
- func (h *BlockHandler) GetIndexerState(chainId uint64) ([]byte, error)
- func (h *BlockHandler) GetLogs(ctx context.Context, filter *dbt.LogFilter) ([]*response.Log, error)
- func (h *BlockHandler) GetTransactionByBlockHashAndIndex(ctx context.Context, hash common.H256, index common.Uint64) (*response.Transaction, error)
- func (h *BlockHandler) GetTransactionByBlockNumberAndIndex(ctx context.Context, number common.BN64, index common.Uint64) (*response.Transaction, error)
- func (h *BlockHandler) GetTransactionByHash(ctx context.Context, hash common.H256) (*response.Transaction, error)
- func (h *BlockHandler) GetTransactionReceipt(ctx context.Context, hash common.H256) (*response.TransactionReceipt, error)
- func (h *BlockHandler) InsertBlock(block *indexer.Block) error
- func (h *BlockHandler) SetIndexerState(chainId uint64, data []byte) error
- type Config
- type FilterHandler
- func (h *FilterHandler) Close() error
- func (h *FilterHandler) DeleteFilter(ctx context.Context, filterId primitives.Data32) error
- func (h *FilterHandler) GetBlockFilter(ctx context.Context, filterId primitives.Data32) (*dbt.BlockFilter, error)
- func (h *FilterHandler) GetFilter(ctx context.Context, filterId primitives.Data32) (any, error)
- func (h *FilterHandler) GetLogFilter(ctx context.Context, filterId primitives.Data32) (*dbt.LogFilter, error)
- func (h *FilterHandler) GetTransactionFilter(ctx context.Context, filterId primitives.Data32) (*dbt.TransactionFilter, error)
- func (h *FilterHandler) StoreBlockFilter(ctx context.Context, filterId primitives.Data32, filter *dbt.BlockFilter) error
- func (h *FilterHandler) StoreFilter(ctx context.Context, filterId primitives.Data32, filter any) error
- func (h *FilterHandler) StoreLogFilter(ctx context.Context, filterId primitives.Data32, filter *dbt.LogFilter) error
- func (h *FilterHandler) StoreTransactionFilter(ctx context.Context, filterId primitives.Data32, filter *dbt.TransactionFilter) error
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockHandler ¶
type BlockHandler struct { Config *Config // contains filtered or unexported fields }
func NewBlockHandler ¶
func NewBlockHandler() (*BlockHandler, error)
func NewBlockHandlerWithCodec ¶
func NewBlockHandlerWithCodec(codec codec.Codec) (*BlockHandler, error)
func (*BlockHandler) BlockHashToNumber ¶
func (*BlockHandler) BlockNumber ¶
func (h *BlockHandler) BlockNumber(ctx context.Context) (*primitives.HexUint, error)
func (*BlockHandler) BlockNumberToHash ¶
func (*BlockHandler) Close ¶
func (h *BlockHandler) Close() error
func (*BlockHandler) GetBlockByHash ¶
func (*BlockHandler) GetBlockByNumber ¶
func (*BlockHandler) GetBlockTransactionCountByHash ¶
func (h *BlockHandler) GetBlockTransactionCountByHash(ctx context.Context, hash common.H256) (*primitives.HexUint, error)
func (*BlockHandler) GetBlockTransactionCountByNumber ¶
func (h *BlockHandler) GetBlockTransactionCountByNumber(ctx context.Context, number common.BN64) (*primitives.HexUint, error)
func (*BlockHandler) GetFilterChanges ¶
func (h *BlockHandler) GetFilterChanges(ctx context.Context, filter any) (*[]interface{}, error)
func (*BlockHandler) GetFilterLogs ¶
func (*BlockHandler) GetIndexerState ¶
func (h *BlockHandler) GetIndexerState(chainId uint64) ([]byte, error)
func (*BlockHandler) GetTransactionByBlockHashAndIndex ¶
func (h *BlockHandler) GetTransactionByBlockHashAndIndex(ctx context.Context, hash common.H256, index common.Uint64) (*response.Transaction, error)
func (*BlockHandler) GetTransactionByBlockNumberAndIndex ¶
func (h *BlockHandler) GetTransactionByBlockNumberAndIndex(ctx context.Context, number common.BN64, index common.Uint64) (*response.Transaction, error)
func (*BlockHandler) GetTransactionByHash ¶
func (h *BlockHandler) GetTransactionByHash(ctx context.Context, hash common.H256) (*response.Transaction, error)
func (*BlockHandler) GetTransactionReceipt ¶
func (h *BlockHandler) GetTransactionReceipt(ctx context.Context, hash common.H256) (*response.TransactionReceipt, error)
func (*BlockHandler) InsertBlock ¶
func (h *BlockHandler) InsertBlock(block *indexer.Block) error
func (*BlockHandler) SetIndexerState ¶
func (h *BlockHandler) SetIndexerState(chainId uint64, data []byte) error
type FilterHandler ¶
type FilterHandler struct { Config *Config // contains filtered or unexported fields }
func NewFilterHandler ¶
func NewFilterHandler() (*FilterHandler, error)
func NewFilterHandlerWithCodec ¶
func NewFilterHandlerWithCodec(codec codec.Codec) (*FilterHandler, error)
func (*FilterHandler) Close ¶
func (h *FilterHandler) Close() error
func (*FilterHandler) DeleteFilter ¶
func (h *FilterHandler) DeleteFilter(ctx context.Context, filterId primitives.Data32) error
func (*FilterHandler) GetBlockFilter ¶
func (h *FilterHandler) GetBlockFilter(ctx context.Context, filterId primitives.Data32) (*dbt.BlockFilter, error)
func (*FilterHandler) GetFilter ¶
func (h *FilterHandler) GetFilter(ctx context.Context, filterId primitives.Data32) (any, error)
func (*FilterHandler) GetLogFilter ¶
func (h *FilterHandler) GetLogFilter(ctx context.Context, filterId primitives.Data32) (*dbt.LogFilter, error)
func (*FilterHandler) GetTransactionFilter ¶
func (h *FilterHandler) GetTransactionFilter(ctx context.Context, filterId primitives.Data32) (*dbt.TransactionFilter, error)
func (*FilterHandler) StoreBlockFilter ¶
func (h *FilterHandler) StoreBlockFilter(ctx context.Context, filterId primitives.Data32, filter *dbt.BlockFilter) error
func (*FilterHandler) StoreFilter ¶
func (h *FilterHandler) StoreFilter(ctx context.Context, filterId primitives.Data32, filter any) error
func (*FilterHandler) StoreLogFilter ¶
func (h *FilterHandler) StoreLogFilter(ctx context.Context, filterId primitives.Data32, filter *dbt.LogFilter) error
func (*FilterHandler) StoreTransactionFilter ¶
func (h *FilterHandler) StoreTransactionFilter(ctx context.Context, filterId primitives.Data32, filter *dbt.TransactionFilter) error
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewBadgerLogger ¶
Click to show internal directories.
Click to hide internal directories.