Versions in this module Expand all Collapse all v0 v0.1.3 Feb 21, 2024 Changes in this version + const READ_TIMEOUT + const SAVE_TIMEOUT + const SCAN_TIMEOUT + type Scanner struct + func NewScanner(db *db.DB, networks web3.NetworkEndpoints, coolDown time.Duration) *Scanner + func (s *Scanner) SaveHolders(ctx context.Context, token *ScannerToken, holders map[common.Address]*big.Int, ...) error + func (s *Scanner) ScanHolders(ctx context.Context, token *ScannerToken) (map[common.Address]*big.Int, uint64, uint64, bool, *big.Int, error) + func (s *Scanner) SetProviders(newProviders ...providers.HolderProvider) error + func (s *Scanner) Start(ctx context.Context) + func (s *Scanner) Stop() + func (s *Scanner) TokensToScan(ctx context.Context) ([]*ScannerToken, error) + type ScannerToken struct + Address common.Address + ChainID uint64 + ExternalID string + LastBlock uint64 + Ready bool + Synced bool + Type uint64