Documentation ¶
Index ¶
- Variables
- func PlatformStrings() []string
- func WorkerStrings() []string
- type Platform
- func (i Platform) IsAPlatform() bool
- func (i Platform) MarshalJSON() ([]byte, error)
- func (i Platform) MarshalYAML() (interface{}, error)
- func (i *Platform) Scan(value interface{}) error
- func (i Platform) String() string
- func (i *Platform) UnmarshalJSON(data []byte) error
- func (p *Platform) UnmarshalParam(param string) error
- func (i *Platform) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (i Platform) Value() (driver.Value, error)
- func (Platform) Values() []string
- type Worker
- func (w Worker) Component() string
- func (i Worker) IsAWorker() bool
- func (i Worker) MarshalJSON() ([]byte, error)
- func (i Worker) MarshalYAML() (interface{}, error)
- func (w Worker) Name() string
- func (i *Worker) Scan(value interface{}) error
- func (i Worker) String() string
- func (i *Worker) UnmarshalJSON(data []byte) error
- func (w *Worker) UnmarshalParam(param string) error
- func (i *Worker) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (i Worker) Value() (driver.Value, error)
- func (Worker) Values() []string
Constants ¶
This section is empty.
Variables ¶
var ToIconURLMap = map[Worker]string{ Aave: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/aave.svg", Aavegotchi: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/aavegotchi.svg", Core: "", Crossbell: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/crossbell.svg", Curve: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/curve.svg", ENS: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/ens.svg", Highlight: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/highlight.svg", IQWiki: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/iqwiki.svg", KiwiStand: "https://storage.googleapis.com/rss3-icon/kiwistand.png", Lens: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/lens.svg", Lido: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/lido.svg", Looksrare: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/looks-rare.svg", Matters: "https://storage.googleapis.com/rss3-icon/matters.jpg", Mirror: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/mirror.svg", Momoka: "https://storage.googleapis.com/rss3-icon/momoka.png", Oneinch: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/1inch.svg", OpenSea: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/opensea.svg", Optimism: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/optimism.svg", Paragraph: "https://storage.googleapis.com/rss3-icon/paragraph.png", RSS3: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/rss3.svg", SAVM: "", Stargate: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/stargate.svg", Uniswap: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/uniswap.svg", VSL: "https://unpkg.com/@rss3/web3-icons-svg@latest/icons/rss3-vsl.svg", }
var ToPlatformMap = map[Worker]Platform{ Aave: PlatformAAVE, Aavegotchi: PlatformAavegotchi, Crossbell: PlatformCrossbell, Curve: PlatformCurve, ENS: PlatformENS, Highlight: PlatformHighlight, IQWiki: PlatformIQWiki, KiwiStand: PlatformKiwiStand, Lens: PlatformLens, Lido: PlatformLido, Looksrare: PlatformLooksRare, Matters: PlatformMatters, Mirror: PlatformMirror, Momoka: PlatformLens, Oneinch: Platform1Inch, OpenSea: PlatformOpenSea, Optimism: PlatformOptimism, Paragraph: PlatformParagraph, RSS3: PlatformRSS3, SAVM: PlatformSAVM, Stargate: PlatformStargate, Uniswap: PlatformUniswap, VSL: PlatformVSL, }
ToPlatformMap is a map of worker to platform
var ToTagsMap = map[Worker][]tag.Tag{ Aave: {tag.Exchange}, Aavegotchi: {tag.Metaverse}, Core: {tag.Collectible, tag.Transaction}, Crossbell: {tag.Social}, Curve: {tag.Exchange, tag.Transaction}, ENS: {tag.Social, tag.Collectible}, Highlight: {tag.Collectible, tag.Transaction}, IQWiki: {tag.Social}, KiwiStand: {tag.Collectible, tag.Transaction, tag.Social}, Lens: {tag.Social}, Lido: {tag.Exchange, tag.Transaction, tag.Collectible}, Looksrare: {tag.Collectible}, Matters: {tag.Social}, Mirror: {tag.Social}, Momoka: {tag.Social}, Oneinch: {tag.Exchange}, OpenSea: {tag.Collectible}, Optimism: {tag.Transaction}, Paragraph: {tag.Social}, RSS3: {tag.Exchange, tag.Collectible}, SAVM: {tag.Transaction}, Stargate: {tag.Transaction}, Uniswap: {tag.Exchange, tag.Transaction}, VSL: {tag.Transaction}, }
ToTagsMap is a map of worker to tags
Functions ¶
func PlatformStrings ¶
func PlatformStrings() []string
PlatformStrings returns a slice of all String values of the enum
func WorkerStrings ¶
func WorkerStrings() []string
WorkerStrings returns a slice of all String values of the enum
Types ¶
type Platform ¶
type Platform uint64
const ( PlatformUnknown Platform = iota // Unknown Platform1Inch // 1inch PlatformAAVE // AAVE PlatformAavegotchi // Aavegotchi PlatformCrossbell // Crossbell PlatformCurve // Curve PlatformENS // ENS PlatformFarcaster // Farcaster PlatformHighlight // Highlight PlatformIQWiki // IQWiki PlatformKiwiStand // KiwiStand PlatformLens // Lens PlatformLido // Lido PlatformLooksRare // LooksRare PlatformMatters // Matters PlatformMirror // Mirror PlatformOpenSea // OpenSea PlatformOptimism // Optimism PlatformParagraph // Paragraph PlatformRSS3 // RSS3 PlatformSAVM // SAVM PlatformStargate // Stargate PlatformUniswap // Uniswap PlatformVSL // VSL )
func PlatformString ¶
PlatformString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func PlatformValues ¶
func PlatformValues() []Platform
PlatformValues returns all values of the enum
func (Platform) IsAPlatform ¶
IsAPlatform returns "true" if the value is listed in the enum definition. "false" otherwise
func (Platform) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Platform
func (Platform) MarshalYAML ¶
MarshalYAML implements a YAML Marshaler for Platform
func (*Platform) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Platform
func (*Platform) UnmarshalParam ¶
func (*Platform) UnmarshalYAML ¶
UnmarshalYAML implements a YAML Unmarshaler for Platform
type Worker ¶
type Worker int
const ( Aave Worker = iota + 1 // aave Aavegotchi // aavegotchi Core // core Crossbell // crossbell Curve // curve ENS // ens Highlight // highlight IQWiki // iqwiki KiwiStand // kiwistand Lens // lens Lido // lido Looksrare // looksrare Matters // matters Mirror // mirror Momoka // momoka Oneinch // 1inch OpenSea // opensea Optimism // optimism Paragraph // paragraph RSS3 // rss3 SAVM // savm Stargate // stargate Uniswap // uniswap VSL // vsl )
func GetValueByWorkerStr ¶
func WorkerString ¶
WorkerString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Worker) IsAWorker ¶
IsAWorker returns "true" if the value is listed in the enum definition. "false" otherwise
func (Worker) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Worker
func (Worker) MarshalYAML ¶
MarshalYAML implements a YAML Marshaler for Worker
func (*Worker) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Worker
func (*Worker) UnmarshalParam ¶
func (*Worker) UnmarshalYAML ¶
UnmarshalYAML implements a YAML Unmarshaler for Worker