Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, client *starknet.FeederGatewayClient, storage storage.Storage, bus dispatcher.EventDispatcher)
Run an indexer for each app registered
Types ¶
type ContractIndex ¶
func NewContractIndex ¶
func NewContractIndex(startBlock uint64) *ContractIndex
func (*ContractIndex) AddBlock ¶
func (c *ContractIndex) AddBlock(block uint64)
func (*ContractIndex) Decode ¶
func (c *ContractIndex) Decode(buf []byte) error
func (*ContractIndex) SetLatestBlock ¶
func (c *ContractIndex) SetLatestBlock(block uint64)
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Single contract indexer
func NewIndexer ¶
func NewIndexer(config config.Config, client *starknet.FeederGatewayClient, storage storage.Storage, bus dispatcher.EventDispatcher) *Indexer
Click to show internal directories.
Click to hide internal directories.