chawago

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Topic0 models.Topic = iota
	Topic1
	Topic2
	Topic3
)

Variables

This section is empty.

Functions

func GetPendingTransactions

func GetPendingTransactions(qPendingTx chan *types.Transaction, qTxsWithLogs chan *models.TxWithLogs, providerPool *provider.Pool)

GetPendingTransactions utilizes the providerPool to fetch the transaction & receipt for logs from qRawLogs. The transaction with the receipt is then sent to qTxsWithLogs.

func GetTransactionsForLogs

func GetTransactionsForLogs(gb *gloomberg.Gloomberg, qRawLogs chan types.Log) chan *models.TxWithLogs

GetTransactionsForLogs utilizes the providerPool to fetch the transaction & receipt for logs from qRawLogs. The transaction with the receipt is then sent to qTxsWithLogs.

func GetTransactionsForLogsWithChannel added in v0.7.0

func GetTransactionsForLogsWithChannel(gb *gloomberg.Gloomberg, qRawLogs chan types.Log, qTxsWithLogs chan *models.TxWithLogs) chan *models.TxWithLogs

Types

type WalletWatcher added in v0.11.0

type WalletWatcher struct {
	Wallets map[common.Address]*wallet.Wallet
	// contains filtered or unexported fields
}

func NewWalletWatcher added in v0.11.0

func NewWalletWatcher(gb *gloomberg.Gloomberg) *WalletWatcher

NewWalletWatcher returns a new walletWatcher.

func (*WalletWatcher) FormattedWallets added in v0.11.0

func (ww *WalletWatcher) FormattedWallets() []string

func (*WalletWatcher) Pr added in v0.11.0

func (ww *WalletWatcher) Pr(message string)

Pr prints messages from seawatcher to the terminal.

func (*WalletWatcher) PrDf added in v0.11.0

func (ww *WalletWatcher) PrDf(format string, a ...interface{})

func (*WalletWatcher) Prf added in v0.11.0

func (ww *WalletWatcher) Prf(format string, a ...interface{})

Prf formats and prints messages from seawatcher to the terminal.

func (*WalletWatcher) Watch added in v0.11.0

func (ww *WalletWatcher) Watch()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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