Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, opts *cli.IndexerOptions, client *starknet.FeederGatewayClient, storage storage.Storage)
Types ¶
type BlockDatasource ¶
type FeederGateway ¶
type FeederGateway struct {
// contains filtered or unexported fields
}
func NewFeederGatewaySynchronizer ¶
func NewFeederGatewaySynchronizer(client *starknet.FeederGatewayClient, storage storage.Storage) *FeederGateway
func (*FeederGateway) Start ¶
func (g *FeederGateway) Start(ctx context.Context)
type Synchronizer ¶
type Synchronizer struct {
// contains filtered or unexported fields
}
func NewSynchronizer ¶
func NewSynchronizer(client *starknet.FeederGatewayClient, storage storage.Storage) *Synchronizer
func (*Synchronizer) FetchBlock ¶
func (s *Synchronizer) FetchBlock(blockNumber uint64) (*starknet.GetBlockResponse, error)
func (*Synchronizer) Start ¶
func (s *Synchronizer) Start(ctx context.Context)
func (*Synchronizer) SyncBlock ¶
func (s *Synchronizer) SyncBlock(ctx context.Context, block *starknet.GetBlockResponse)
Click to show internal directories.
Click to hide internal directories.