ticker

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GasTicker

func GasTicker(gasTicker *time.Ticker, ethNodes *nodes.Nodes, queueOutput *chan string)

Types

type Stats

type Stats struct {
	OwnEventsHistory []string
	EventHistory     []*collections.Event

	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, nodes *nodes.Nodes, numCollections int) *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()

func (*Stats) Reset

func (s *Stats) Reset()

func (*Stats) StartTicker

func (s *Stats) StartTicker(intervalPrintStats time.Duration)

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