indexer

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIndexerEVM

func NewIndexerEVM() (types.Indexer, error)

NewIndexerEVM creates a new instance of IndexerEVM.

func NewIndexerTron

func NewIndexerTron() types.Indexer

NewIndexerTron creates a new instance of IndexerTron.

Types

type IndexerEVM

type IndexerEVM struct {
	// contains filtered or unexported fields
}

IndexerEVM performs blockchain to database extract, transform, load (ETL) operations.

func (*IndexerEVM) IndexGateway

func (s *IndexerEVM) IndexGateway(ctx context.Context, network *ent.Network, address string, fromBlock int64, toBlock int64, txHash string) (*types.EventCounts, error)

IndexGateway indexes all gateway events (OrderCreated, OrderSettled, OrderRefunded) in one efficient call

func (*IndexerEVM) IndexProviderAddress added in v0.0.2

func (s *IndexerEVM) IndexProviderAddress(ctx context.Context, network *ent.Network, address string, fromBlock int64, toBlock int64, txHash string) (*types.EventCounts, error)

IndexProviderAddress indexes OrderSettled events for a provider address

func (*IndexerEVM) IndexReceiveAddress

func (s *IndexerEVM) IndexReceiveAddress(ctx context.Context, token *ent.Token, address string, fromBlock int64, toBlock int64, txHash string) (*types.EventCounts, error)

IndexReceiveAddress indexes all transfer events for a specific receive address

func (*IndexerEVM) IndexReceiveAddressWithBypass added in v0.1.0

func (s *IndexerEVM) IndexReceiveAddressWithBypass(ctx context.Context, token *ent.Token, address string, fromBlock int64, toBlock int64, txHash string, bypassQueue bool) (*types.EventCounts, error)

IndexReceiveAddressWithBypass indexes all transfer events for a specific receive address with option to bypass queue

type IndexerTron

type IndexerTron struct {
	// contains filtered or unexported fields
}

IndexerTron performs blockchain to database extract, transform, load (ETL) operations.

func (*IndexerTron) IndexGateway

func (s *IndexerTron) IndexGateway(ctx context.Context, network *ent.Network, address string, fromBlock int64, toBlock int64, txHash string) (*types.EventCounts, error)

IndexGateway indexes all Gateway contract events (OrderCreated, OrderSettled, OrderRefunded) in a single call

func (*IndexerTron) IndexProviderAddress added in v0.0.2

func (s *IndexerTron) IndexProviderAddress(ctx context.Context, network *ent.Network, address string, fromBlock int64, toBlock int64, txHash string) (*types.EventCounts, error)

IndexProviderAddress indexes OrderSettled events for a provider address

func (*IndexerTron) IndexReceiveAddress

func (s *IndexerTron) IndexReceiveAddress(ctx context.Context, token *ent.Token, address string, fromBlock int64, toBlock int64, txHash string) (*types.EventCounts, error)

IndexReceiveAddress indexes transfers to receive/linked addresses from user transaction history

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL