ticker

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 32 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

func GetHashTags added in v0.11.1

func GetHashTags(types 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

	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
	Mints uint64

	Wallets        []*Wallet
	RankingMap     map[HolderTypes]uint64
	BlueChipEvents []*totra.TokenTransaction

	TotalTokensTransferredToBlueChips *big.Int
	GroupByWallets                    map[common.Address]string
	// contains filtered or unexported fields
}

func (*Counters) GetTXCount added in v0.11.1

func (c *Counters) GetTXCount() uint64

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
	DeGods
)

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 TwitterClient added in v0.11.1

type TwitterClient struct {
	// contains filtered or unexported fields
}

func NewTwitterClient added in v0.11.1

func NewTwitterClient(cred *TwitterCredentials) *TwitterClient

func (*TwitterClient) PostTweetV2 added in v0.11.1

func (c *TwitterClient) PostTweetV2(msg string)

type TwitterCredentials added in v0.11.1

type TwitterCredentials struct {
	ConsumerKey       string
	ConsumerSecret    string
	AccessToken       string
	AccessTokenSecret string
}

type Wallet added in v0.6.0

type Wallet struct {
	Address common.Address `json:"address"`
	Ens     string         `json:"ens"`
	Types   []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