ticker

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWalletBalance = fmt.Errorf("error fetching wallet balance")

ErrWalletBalance given for issues while fetching wallet balances.

Functions

func GasTicker

func GasTicker(gasTicker *time.Ticker, providerPool *provider.Pool, queueOutput chan string)

Types

type Stats

type Stats struct {
	OwnEventsHistory []string
	EventHistory     []*totra.HistoryTokenTransaction

	NewLogs        uint64
	NewListings    uint64
	EventsToFormat uint64
	OutputLines    uint64

	DiscardedTransactions      uint64
	DiscardedTransfers         uint64
	DiscardedLowPrice          uint64
	DiscardedOtherERC          uint64
	DiscardedAlreadyKnownTX    uint64
	DiscardedUnknownCollection uint64
	DiscardedMints             uint64
	// contains filtered or unexported fields
}
var (
	StatsTicker *Stats
)

func New

func New(gasTicker *time.Ticker, wallets *wallet.Wallets, providerPool *provider.Pool) *Stats

func (*Stats) AddMint

func (s *Stats) AddMint()

func (*Stats) AddSale

func (s *Stats) AddSale(value *big.Int) float64

func (*Stats) Print

func (s *Stats) Print(queueOutput chan string)

func (*Stats) Reset

func (s *Stats) Reset()

func (*Stats) StartTicker

func (s *Stats) StartTicker(intervalPrintStats time.Duration, queueOutput chan string)

func (*Stats) UpdateBalances

func (s *Stats) UpdateBalances() (*wallet.Wallets, error)

Jump to

Keyboard shortcuts

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