Documentation ¶
Index ¶
- Variables
- func CheckEIP6551TokenAccount(gb *Gloomberg, tokenContract *common.Address, tokenID *big.Int) (bool, *common.Address, error)
- func GasTicker(gb *Gloomberg, gasTicker *time.Ticker, providerPool *provider.Pool, ...)
- func GetFirstTxsForContract(collectionName string, contractAddress common.Address)
- func GetServerTLSConfig() (*tls.Config, error)
- func GetTLSClientCredentials() credentials.TransportCredentials
- func GetTLSCredentialsWithoutClientAuth() (credentials.TransportCredentials, error)
- func JobCheckEIP6551TokenAccount(params ...any)
- func JobFirstTxsForContract(params ...any)
- func Pr(message string)
- func PrDMod(mod string, message string)
- func PrDModf(mod string, format string, a ...any)
- func PrMod(mod string, message string)
- func PrModf(mod string, format string, a ...any)
- func PrVMod(mod string, message string)
- func PrVModf(mod string, format string, a ...any)
- func PrWarn(message string)
- func PrWithKeywordAndIcon(icon string, keyword string, message string)
- func Prf(format string, a ...any)
- type FirstTxsTask
- type Gloomberg
- func (gb *Gloomberg) SendSlugsToServer()
- func (gb *Gloomberg) String()
- func (eh Gloomberg) SubscribNewBlocks() chan uint64
- func (eh Gloomberg) SubscribeCollectionOffer() chan *models.CollectionOffer
- func (eh Gloomberg) SubscribeItemListed() chan *models.ItemListed
- func (eh Gloomberg) SubscribeItemMetadataUpdated() chan *models.ItemMetadataUpdated
- func (eh Gloomberg) SubscribeItemReceivedBid() chan *models.ItemReceivedBid
- func (eh Gloomberg) SubscribeParsedEvents() chan *degendb.PreformattedEvent
- func (eh Gloomberg) SubscribeRecentOwnEvents() chan []*degendb.PreformattedEvent
- func (eh Gloomberg) SubscribeSeawatcherMgmt() chan *models.MgmtEvent
- func (eh Gloomberg) SubscribeTokenTransactions() chan *totra.TokenTransaction
- func (eh Gloomberg) SubscribeTxWithLogs() chan *chawagoModels.TxWithLogs
- func (eh Gloomberg) UnsubscribeCollectionOffer(collectionOfferChan chan *models.CollectionOffer)
- func (eh Gloomberg) UnsubscribeItemListed(itemListedChan chan *models.ItemListed)
- func (eh Gloomberg) UnsubscribeItemMetadataUpdated(itemMetadataUpdatedChan chan *models.ItemMetadataUpdated)
- func (eh Gloomberg) UnsubscribeItemReceivedBid(itemReceivedBidChan chan *models.ItemReceivedBid)
- type Stats
Constants ¶
This section is empty.
Variables ¶
var ErrWalletBalance = fmt.Errorf("error fetching wallet balance")
ErrWalletBalance given for issues while fetching wallet balances.
var (
TerminalPrinterQueue = make(chan string, viper.GetInt("gloomberg.eventhub.inQueuesSize"))
)
Functions ¶
func CheckEIP6551TokenAccount ¶ added in v0.11.0
func GetFirstTxsForContract ¶ added in v0.11.0
GetFirstTxsForContract fetches the first 1337 txs for a contract from etherscan and saves them to a json file.
func GetServerTLSConfig ¶ added in v0.11.0
func GetTLSClientCredentials ¶ added in v0.11.0
func GetTLSClientCredentials() credentials.TransportCredentials
func GetTLSCredentialsWithoutClientAuth ¶ added in v0.11.0
func GetTLSCredentialsWithoutClientAuth() (credentials.TransportCredentials, error)
func JobCheckEIP6551TokenAccount ¶ added in v0.11.0
func JobCheckEIP6551TokenAccount(params ...any)
func JobFirstTxsForContract ¶ added in v0.11.0
func JobFirstTxsForContract(params ...any)
func Pr ¶ added in v0.11.1
func Pr(message string)
Pr prints messages from gloomberg to the terminal. func (gb *Gloomberg) Pr(message string) {.
func PrDMod ¶ added in v0.11.1
PrDMod prints messages from gloomberg to the terminal if debug mode is enabled. func (gb *Gloomberg) PrDMod(mod string, message string) {.
func PrDModf ¶ added in v0.11.1
PrDModf formats and prints messages from gloomberg to the terminal if debug mode is enabled. func (gb *Gloomberg) PrDModf(mod string, format string, a ...any) {.
func PrModf ¶ added in v0.11.1
PrModf formats and prints messages from gloomberg to the terminal. func (gb *Gloomberg) PrModf(mod string, format string, a ...any) {.
func PrVMod ¶ added in v0.11.1
PrVMod prints messages from gloomberg to the terminal if verbose mode is enabled. func (gb *Gloomberg) PrVMod(mod string, message string) {.
func PrVModf ¶ added in v0.11.1
PrVModf formats and prints messages from gloomberg to the terminal if verbose mode is enabled. func (gb *Gloomberg) PrVModf(mod string, format string, a ...any) {.
func PrWarn ¶ added in v0.11.1
func PrWarn(message string)
func (gb *Gloomberg) PrWarn(message string) {.
func PrWithKeywordAndIcon ¶ added in v0.11.1
func (gb *Gloomberg) PrWithKeywordAndIcon(icon string, keyword string, message string) {.
Types ¶
type FirstTxsTask ¶ added in v0.11.0
type Gloomberg ¶
type Gloomberg struct { // Nodes *nodes.Nodes ProviderPool *provider.Pool Watcher *watch.Watcher CollectionDB *collections.CollectionDB OwnWallets *wallet.Wallets Stats *Stats RecentOwnEvents mapset.Set[*degendb.PreformattedEvent] Ranks map[common.Address]map[int64]degendb.TokenRank Rdb rueidis.Client Rueidi *rueidica.Rueidica QueueSlugs chan common.Address CurrentGasPriceGwei uint64 CurrentOnlineWebUsers uint64 // GloomHub *gloomhub Jobs *jobs.Runner *degendb.DegenDB // misc / maybe find better solutions... PrintConfigurations map[string]*printConfig // contains filtered or unexported fields }
var GB *Gloomberg
func (*Gloomberg) SendSlugsToServer ¶
func (gb *Gloomberg) SendSlugsToServer()
func (Gloomberg) SubscribNewBlocks ¶ added in v0.7.3
func (eh Gloomberg) SubscribNewBlocks() chan uint64
func (Gloomberg) SubscribeCollectionOffer ¶ added in v0.7.3
func (eh Gloomberg) SubscribeCollectionOffer() chan *models.CollectionOffer
func (Gloomberg) SubscribeItemListed ¶ added in v0.7.1
func (eh Gloomberg) SubscribeItemListed() chan *models.ItemListed
func (Gloomberg) SubscribeItemMetadataUpdated ¶ added in v0.11.0
func (eh Gloomberg) SubscribeItemMetadataUpdated() chan *models.ItemMetadataUpdated
func (Gloomberg) SubscribeItemReceivedBid ¶ added in v0.7.3
func (eh Gloomberg) SubscribeItemReceivedBid() chan *models.ItemReceivedBid
func (Gloomberg) SubscribeParsedEvents ¶ added in v0.10.0
func (eh Gloomberg) SubscribeParsedEvents() chan *degendb.PreformattedEvent
func (Gloomberg) SubscribeRecentOwnEvents ¶ added in v0.11.0
func (eh Gloomberg) SubscribeRecentOwnEvents() chan []*degendb.PreformattedEvent
func (Gloomberg) SubscribeSeawatcherMgmt ¶ added in v0.8.0
func (Gloomberg) SubscribeTokenTransactions ¶ added in v0.7.3
func (eh Gloomberg) SubscribeTokenTransactions() chan *totra.TokenTransaction
func (Gloomberg) SubscribeTxWithLogs ¶ added in v0.7.1
func (eh Gloomberg) SubscribeTxWithLogs() chan *chawagoModels.TxWithLogs
func (Gloomberg) UnsubscribeCollectionOffer ¶ added in v0.11.1
func (eh Gloomberg) UnsubscribeCollectionOffer(collectionOfferChan chan *models.CollectionOffer)
func (Gloomberg) UnsubscribeItemListed ¶ added in v0.11.1
func (eh Gloomberg) UnsubscribeItemListed(itemListedChan chan *models.ItemListed)
func (Gloomberg) UnsubscribeItemMetadataUpdated ¶ added in v0.11.1
func (eh Gloomberg) UnsubscribeItemMetadataUpdated(itemMetadataUpdatedChan chan *models.ItemMetadataUpdated)
func (Gloomberg) UnsubscribeItemReceivedBid ¶ added in v0.11.1
func (eh Gloomberg) UnsubscribeItemReceivedBid(itemReceivedBidChan chan *models.ItemReceivedBid)
type Stats ¶ added in v0.9.1
type Stats struct { RecentEvents mapset.Set[*degendb.RecentEvent] NewLogs uint64 NewListings uint64 EventsToFormat uint64 OutputLines uint64 // contains filtered or unexported fields }