models

package
v0.0.0-...-472bc46 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTokens

func LoadTokens() (map[string]*Token, error)

Types

type Action

type Action struct {
	Token *Token
}

func (*Action) String

func (a *Action) String() string

type Floor

type Floor struct {
	Value float64
	Time  time.Time
}

type Token

type Token struct {
	Type           string  `json:"type"`
	Timestamp      int64   `json:"timestamp"`
	BlockTimestamp int64   `json:"blockTimestamp"`
	MintAddress    string  `json:"mintAddress"`
	Symbol         string  `json:"symbol"`
	Name           string  `json:"name"`
	Price          float64 `json:"price"`
	FloorPrice     float64 `json:"floorPrice"`
	RarityStr      string  `json:"rarityStr"`
	Rank           int     `json:"rank"`
	Supply         int     `json:"supply"`
	TokenAddress   string  `json:"tokenAddress"`
	Seller         string  `json:"seller"`
}

func (*Token) String

func (t *Token) String() string

Jump to

Keyboard shortcuts

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