trapri

package
v0.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatListing

func FormatListing(gb *gloomberg.Gloomberg, event *osmodels.ItemListedEvent)

func HandleCollectionOffer added in v0.7.3

func HandleCollectionOffer(gb *gloomberg.Gloomberg, event *models.CollectionOffer)

func HandleItemListed added in v0.7.3

func HandleItemListed(gb *gloomberg.Gloomberg, event *models.ItemListed)

func HandleItemReceivedBid added in v0.7.3

func HandleItemReceivedBid(gb *gloomberg.Gloomberg, event *models.ItemReceivedBid)

func OpenseaEventsHandler added in v0.7.3

func OpenseaEventsHandler(gb *gloomberg.Gloomberg)

OpenseaEventsHandler handles all incoming & decoded events from OpenSea and dispatches them to the appropriate handler.

func TokenTransactionFormatter

func TokenTransactionFormatter(gb *gloomberg.Gloomberg, seawa *seawatcher.SeaWatcher)

func TokenTransactionFormatter(gb *gloomberg.Gloomberg, seawa *seawatcher.SeaWatcher, queueWsOutTokenTransactions chan *totra.TokenTransaction, queueWsInTokenTransactions chan *totra.TokenTransaction) {.

Types

type OutputColors

type OutputColors struct {
	Platform            lipgloss.Color
	DateTime            lipgloss.Color
	PriceSymbol         lipgloss.Color
	FromToSymbol        lipgloss.Color
	Collection          lipgloss.Color
	CollectionSecondary lipgloss.Color
	Buyer               lipgloss.Color
	Seller              lipgloss.Color
	SaLiRa              lipgloss.Color
}

type OutputLine

type OutputLine struct {
	PlatformSymbol string
	DateTime       string
	PriceSymbol    string
	ActionSymhol   string
	FromToSymbol   string
	Price          float64
	PricePerItem   float64
	CollectionName string
	TokenIDs       []int64
	TxHash         string
	Buyer          osmodels.Account
	Seller         osmodels.Account
	NumSales       int
	NumListings    int
	SaLiRa         float64

	Colors OutputColors
}

Jump to

Keyboard shortcuts

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