ticker

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEmojiMapping added in v0.6.0

func GetEmojiMapping(holderType HolderTypes) string

Types

type AlphaScore added in v0.6.0

type AlphaScore struct {
	WalletMap      map[common.Address]*Wallet
	CollectionData map[common.Address]*CollectionStats

	RWMu *sync.RWMutex
	// contains filtered or unexported fields
}
var (
	AlphaCaller *AlphaScore
)

func NewAlphaScore added in v0.6.0

func NewAlphaScore(gb *gloomberg.Gloomberg) *AlphaScore

func (*AlphaScore) AddEvent added in v0.6.0

func (s *AlphaScore) AddEvent(eventTx *totra.TokenTransaction)

func (*AlphaScore) AlphaCallerTicker added in v0.6.0

func (s *AlphaScore) AlphaCallerTicker(gb *gloomberg.Gloomberg, alphaCallerTicker *time.Ticker)

func (*AlphaScore) UpdateScore added in v0.6.0

func (s *AlphaScore) UpdateScore(collection *collections.Collection, recipientAddress common.Address, eventTx *totra.TokenTransaction)

type BlueChipRanking added in v0.6.0

type BlueChipRanking struct {
}

type BlueChipStats added in v0.6.0

type BlueChipStats struct {
	BlueChipEvents     []*totra.TokenTransaction
	WalletMap          map[common.Address]*Wallet
	CollectionStats    map[common.Address]*Counters
	NotifcationEnabled bool

	WhaleEvents  []*totra.TokenTransaction
	WhaleWallets map[common.Address]*Wallet

	sync.RWMutex
	// contains filtered or unexported fields
}
var (
	BlueChips *BlueChipStats
)

func NewBlueChipTicker added in v0.6.0

func NewBlueChipTicker(gb *gloomberg.Gloomberg) *BlueChipStats

func (*BlueChipStats) BlueChipTicker added in v0.6.0

func (s *BlueChipStats) BlueChipTicker(ticker *time.Ticker, queueOutput *chan string)

func (*BlueChipStats) CheckForBlueChipInvolvment added in v0.6.0

func (s *BlueChipStats) CheckForBlueChipInvolvment(eventTx *totra.TokenTransaction)

func (*BlueChipStats) ContainsWallet added in v0.6.0

func (s *BlueChipStats) ContainsWallet(address common.Address) bool

func (*BlueChipStats) GetStats added in v0.6.0

func (s *BlueChipStats) GetStats(address common.Address) *Counters

type CollectionStats added in v0.6.0

type CollectionStats struct {
	Transactions         []*totra.TokenTransaction
	ArchivedTransactions []*totra.TokenTransaction
	Stats                *Counters
	// count of transactions when last notification was sent
	Score int32
}

type Counters added in v0.6.0

type Counters struct {
	Sales       uint64
	SalesTXs    uint64
	SalesVolume *big.Int
	Mints       uint64
	MintsTXs    uint64
	MintsVolume *big.Int
	Transfers   uint64

	Wallets    []*Wallet
	Ranking    []*BlueChipRanking
	RankingMap map[HolderTypes]uint64
	// contains filtered or unexported fields
}

type GetOwnersForCollectionResponse added in v0.6.0

type GetOwnersForCollectionResponse struct {
	OwnerAddresses []string `json:"ownerAddresses"`
}

func ReadWalletsFromJSON added in v0.6.0

func ReadWalletsFromJSON(filePath string) *GetOwnersForCollectionResponse

type HolderTypes added in v0.6.0

type HolderTypes int64
const (
	BAYC HolderTypes = iota
	MAYC
	CryptoPunks
	RLD
	DOODLES
	PUDGYPENGUINS
	MOONBIRDS
	CloneX
	Goblintown
	Azuki
	CYBERKONGZ
	Captainz
)

type ManifoldStats added in v0.6.0

type ManifoldStats struct {
	ManifoldEvents []*totra.TokenTransaction
	// contains filtered or unexported fields
}
var (
	Manifold *ManifoldStats
)

func NewManifoldTicker added in v0.6.0

func NewManifoldTicker(gb *gloomberg.Gloomberg) *ManifoldStats

func (*ManifoldStats) AppendManifoldEvent added in v0.6.0

func (s *ManifoldStats) AppendManifoldEvent(event *totra.TokenTransaction)

func (*ManifoldStats) IsManifoldContractAddress added in v0.6.0

func (s *ManifoldStats) IsManifoldContractAddress(address common.Address) bool

func (*ManifoldStats) ManifoldTicker added in v0.6.0

func (s *ManifoldStats) ManifoldTicker(manifoldTicker *time.Ticker, queueOutput *chan string)

func (*ManifoldStats) OneMinuteTicker added in v0.6.0

func (s *ManifoldStats) OneMinuteTicker(manifoldTicker *time.Ticker)

type Wallet added in v0.6.0

type Wallet struct {
	Address common.Address `json:"address"`
	Ens     string         `json:"ens"`
	Holder  []HolderTypes
	Score   int32 `json:"score"`
}

func (*Wallet) Contains added in v0.6.0

func (s *Wallet) Contains(e HolderTypes) bool

type Wallets added in v0.6.0

type Wallets struct {
	Addresses []*Wallet `json:"addresses"`
}

func ReadCuratedWalletsFromJSON added in v0.6.0

func ReadCuratedWalletsFromJSON(filePath string) *Wallets

Jump to

Keyboard shortcuts

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