Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcClient ¶
type GrpcClient interface { Block(ctx context.Context, height int64) (*cometbftcoretypes.ResultBlock, error) Validators(ctx context.Context, height int64) (*cometbftcoretypes.ResultValidators, error) Txs(ctx context.Context, height int64, txs cometbfttypes.Txs) ([]*tx.GetTxResponse, error) }
type RPCClient ¶
type RPCClient interface { SubscribeNewBlocks(ctx context.Context) (<-chan cometbftcoretypes.ResultEvent, error) Genesis(ctx context.Context) (*cometbfttypes.GenesisDoc, error) GetLastBlockHeight(ctx context.Context) (int64, error) GetBlockEvents(ctx context.Context, height int64) (begin, end types.BlockerEvents, err error) }
type Storage ¶
type Storage interface { GetBlockByHeight(ctx context.Context, height int64) (*model.Block, error) CreateBlock(ctx context.Context, block *model.Block) error SetProcessedStatus(ctx context.Context, height int64) error SetErrorStatus(ctx context.Context, height int64, msg string) error UpdateStatus(ctx context.Context, height int64, status model.Status) error GetErrorBlockHeights(ctx context.Context) ([]int64, error) InsertErrorTx(ctx context.Context, message model.Tx) error InsertErrorMessage(ctx context.Context, message model.Message) error Ping(ctx context.Context) error }
Storage implementation needed for store some tmp data for correct processing
Click to show internal directories.
Click to hide internal directories.