trapri

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 28 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, queueTokenTransactions chan *totra.TokenTransaction)

func TokenTransactionFormatter

func TokenTransactionFormatter(gb *gloomberg.Gloomberg, queueTokenTransactions chan *totra.TokenTransaction, queueWsOutTokenTransactions chan *totra.TokenTransaction, queueWsInTokenTransactions chan *totra.TokenTransaction, terminalPrinterQueue chan string)

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