filter

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectibleTypeStrings

func CollectibleTypeStrings() []string

CollectibleTypeStrings returns a slice of all String values of the enum

func DirectionStrings

func DirectionStrings() []string

DirectionStrings returns a slice of all String values of the enum

func EthereumChainIDStrings

func EthereumChainIDStrings() []string

EthereumChainIDStrings returns a slice of all String values of the enum

func ExchangeTypeStrings

func ExchangeTypeStrings() []string

ExchangeTypeStrings returns a slice of all String values of the enum

func IsOptimismSuperchain

func IsOptimismSuperchain(chainID uint64) bool

func MetaverseTypeStrings

func MetaverseTypeStrings() []string

MetaverseTypeStrings returns a slice of all String values of the enum

func NameStrings

func NameStrings() []string

NameStrings returns a slice of all String values of the enum

func NetworkAndChainID

func NetworkAndChainID(network string) (Network, EthereumChainID)

func NetworkHookFunc

func NetworkHookFunc() mapstructure.DecodeHookFuncType

func NetworkStrings

func NetworkStrings() []string

NetworkStrings returns a slice of all String values of the enum

func PlatformStrings

func PlatformStrings() []string

PlatformStrings returns a slice of all String values of the enum

func RSSTypeStrings

func RSSTypeStrings() []string

RSSTypeStrings returns a slice of all String values of the enum

func SocialTypeStrings

func SocialTypeStrings() []string

SocialTypeStrings returns a slice of all String values of the enum

func TagAndTypeString

func TagAndTypeString(tagValue string, typeValue string) (Tag, Type, error)

func TagStrings

func TagStrings() []string

TagStrings returns a slice of all String values of the enum

func TransactionTypeStrings

func TransactionTypeStrings() []string

TransactionTypeStrings returns a slice of all String values of the enum

func UnknownTypeStrings

func UnknownTypeStrings() []string

UnknownTypeStrings returns a slice of all String values of the enum

func WorkerHookFunc

func WorkerHookFunc() mapstructure.DecodeHookFuncType

Types

type CollectibleType

type CollectibleType uint64
const (
	TypeCollectibleTransfer CollectibleType = iota + 1
	TypeCollectibleApproval
	TypeCollectibleMint
	TypeCollectibleBurn
	TypeCollectibleTrade
)

func CollectibleTypeString

func CollectibleTypeString(s string) (CollectibleType, error)

CollectibleTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func CollectibleTypeValues

func CollectibleTypeValues() []CollectibleType

CollectibleTypeValues returns all values of the enum

func (CollectibleType) IsACollectibleType

func (i CollectibleType) IsACollectibleType() bool

IsACollectibleType returns "true" if the value is listed in the enum definition. "false" otherwise

func (CollectibleType) MarshalJSON

func (i CollectibleType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for CollectibleType

func (CollectibleType) Name

func (i CollectibleType) Name() string

func (*CollectibleType) Scan

func (i *CollectibleType) Scan(value interface{}) error

func (CollectibleType) String

func (i CollectibleType) String() string

func (CollectibleType) Tag

func (i CollectibleType) Tag() Tag

func (*CollectibleType) UnmarshalJSON

func (i *CollectibleType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for CollectibleType

func (CollectibleType) Value

func (i CollectibleType) Value() (driver.Value, error)

func (CollectibleType) Values

func (CollectibleType) Values() []string

type Direction

type Direction uint64
const (
	DirectionIn Direction = iota + 1
	DirectionOut
	DirectionSelf
)

func DirectionString

func DirectionString(s string) (Direction, error)

DirectionString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func DirectionValues

func DirectionValues() []Direction

DirectionValues returns all values of the enum

func (Direction) IsADirection

func (i Direction) IsADirection() bool

IsADirection returns "true" if the value is listed in the enum definition. "false" otherwise

func (Direction) MarshalJSON

func (i Direction) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Direction

func (Direction) String

func (i Direction) String() string

func (*Direction) UnmarshalJSON

func (i *Direction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Direction

func (*Direction) UnmarshalParam

func (d *Direction) UnmarshalParam(param string) error

func (Direction) Values

func (Direction) Values() []string

type EthereumChainID

type EthereumChainID uint64
const (
	EthereumChainIDMainnet           EthereumChainID = 1     // ethereum
	EthereumChainIDOptimism          EthereumChainID = 10    // optimism
	EthereumChainIDPolygon           EthereumChainID = 137   // polygon
	EthereumChainIDArbitrum          EthereumChainID = 42161 // arbitrum
	EthereumChainIDBase              EthereumChainID = 8453  // base
	EthereumChainIDCrossbell         EthereumChainID = 3737  // crossbell
	EthereumChainIDAvalanche         EthereumChainID = 43114 // avax
	EthereumChainIDVSL               EthereumChainID = 12553 // vsl
	EthereumChainIDSatoshiVM         EthereumChainID = 3109  // savm
	EthereumChainIDBinanceSmartChain EthereumChainID = 56    // binance-smart-chain
	EthereumChainIDGnosis            EthereumChainID = 100   // gnosis
	EthereumChainIDLinea             EthereumChainID = 59144 // linea
)

func EthereumChainIDString

func EthereumChainIDString(s string) (EthereumChainID, error)

EthereumChainIDString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func EthereumChainIDValues

func EthereumChainIDValues() []EthereumChainID

EthereumChainIDValues returns all values of the enum

func (EthereumChainID) IsAEthereumChainID

func (i EthereumChainID) IsAEthereumChainID() bool

IsAEthereumChainID returns "true" if the value is listed in the enum definition. "false" otherwise

func (EthereumChainID) MarshalJSON

func (i EthereumChainID) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for EthereumChainID

func (EthereumChainID) MarshalYAML

func (i EthereumChainID) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for EthereumChainID

func (*EthereumChainID) Scan

func (i *EthereumChainID) Scan(value interface{}) error

func (EthereumChainID) String

func (i EthereumChainID) String() string

func (*EthereumChainID) UnmarshalJSON

func (i *EthereumChainID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for EthereumChainID

func (*EthereumChainID) UnmarshalYAML

func (i *EthereumChainID) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for EthereumChainID

func (EthereumChainID) Value

func (i EthereumChainID) Value() (driver.Value, error)

func (EthereumChainID) Values

func (EthereumChainID) Values() []string

type ExchangeType

type ExchangeType uint64
const (
	TypeExchangeSwap ExchangeType = iota + 1
	TypeExchangeLiquidity
	TypeExchangeStaking
)

func ExchangeTypeString

func ExchangeTypeString(s string) (ExchangeType, error)

ExchangeTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ExchangeTypeValues

func ExchangeTypeValues() []ExchangeType

ExchangeTypeValues returns all values of the enum

func (ExchangeType) IsAExchangeType

func (i ExchangeType) IsAExchangeType() bool

IsAExchangeType returns "true" if the value is listed in the enum definition. "false" otherwise

func (ExchangeType) MarshalJSON

func (i ExchangeType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ExchangeType

func (ExchangeType) Name

func (i ExchangeType) Name() string

func (*ExchangeType) Scan

func (i *ExchangeType) Scan(value interface{}) error

func (ExchangeType) String

func (i ExchangeType) String() string

func (ExchangeType) Tag

func (i ExchangeType) Tag() Tag

func (*ExchangeType) UnmarshalJSON

func (i *ExchangeType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ExchangeType

func (ExchangeType) Value

func (i ExchangeType) Value() (driver.Value, error)

func (ExchangeType) Values

func (ExchangeType) Values() []string

type MetaverseType

type MetaverseType uint64
const (
	TypeMetaverseTransfer MetaverseType = iota + 1
	TypeMetaverseMint
	TypeMetaverseBurn
	TypeMetaverseTrade
)

func MetaverseTypeString

func MetaverseTypeString(s string) (MetaverseType, error)

MetaverseTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func MetaverseTypeValues

func MetaverseTypeValues() []MetaverseType

MetaverseTypeValues returns all values of the enum

func (MetaverseType) IsAMetaverseType

func (i MetaverseType) IsAMetaverseType() bool

IsAMetaverseType returns "true" if the value is listed in the enum definition. "false" otherwise

func (MetaverseType) MarshalJSON

func (i MetaverseType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for MetaverseType

func (MetaverseType) Name

func (i MetaverseType) Name() string

func (*MetaverseType) Scan

func (i *MetaverseType) Scan(value interface{}) error

func (MetaverseType) String

func (i MetaverseType) String() string

func (MetaverseType) Tag

func (i MetaverseType) Tag() Tag

func (*MetaverseType) UnmarshalJSON

func (i *MetaverseType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for MetaverseType

func (MetaverseType) Value

func (i MetaverseType) Value() (driver.Value, error)

func (MetaverseType) Values

func (MetaverseType) Values() []string

type Name

type Name int

Name represents a worker name.

const (
	Unknown    Name = iota // unknown
	Fallback               // fallback
	Mirror                 // mirror
	Farcaster              // farcaster
	RSS3                   // rss3
	Paragraph              // paragraph
	OpenSea                // opensea
	Uniswap                // uniswap
	Optimism               // optimism
	Aavegotchi             // aavegotchi
	Lens                   // lens
	Looksrare              // looksrare
	Matters                // matters
	Momoka                 // momoka
	Highlight              // highlight
	Aave                   // aave
	IQWiki                 // iqwiki
	Lido                   // lido
	Crossbell              // crossbell
	ENS                    // ens
	KiwiStand              // kiwistand
	Oneinch                // 1inch
	VSL                    // vsl
	SAVM                   // savm
	Stargate               // stargate
	Curve                  // curve
)

func NameString

func NameString(s string) (Name, error)

NameString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func NameValues

func NameValues() []Name

NameValues returns all values of the enum

func (Name) IsAName

func (i Name) IsAName() bool

IsAName returns "true" if the value is listed in the enum definition. "false" otherwise

func (Name) MarshalJSON

func (i Name) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Name

func (Name) MarshalYAML

func (i Name) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for Name

func (*Name) Scan

func (i *Name) Scan(value interface{}) error

func (Name) String

func (i Name) String() string

func (*Name) UnmarshalJSON

func (i *Name) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Name

func (*Name) UnmarshalYAML

func (i *Name) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for Name

func (Name) Value

func (i Name) Value() (driver.Value, error)

func (Name) Values

func (Name) Values() []string

type Network

type Network uint64
const (
	NetworkUnknown           Network = iota // unknown
	NetworkEthereum                         // ethereum
	NetworkOptimism                         // optimism
	NetworkBase                             // base
	NetworkPolygon                          // polygon
	NetworkCrossbell                        // crossbell
	NetworkArbitrum                         // arbitrum
	NetworkRSS                              // rss
	NetworkArweave                          // arweave
	NetworkFarcaster                        // farcaster
	NetworkAvalanche                        // avax
	NetworkVSL                              // vsl
	NetworkSatoshiVM                        // savm
	NetworkBitcoin                          // bitcoin
	NetworkBinanceSmartChain                // binance-smart-chain
	NetworkGnosis                           // gnosis
	NetworkLinea                            // linea
)

func NetworkString

func NetworkString(s string) (Network, error)

NetworkString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func NetworkValues

func NetworkValues() []Network

NetworkValues returns all values of the enum

func (Network) IsANetwork

func (i Network) IsANetwork() bool

IsANetwork returns "true" if the value is listed in the enum definition. "false" otherwise

func (Network) MarshalJSON

func (i Network) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Network

func (Network) MarshalYAML

func (i Network) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for Network

func (*Network) Scan

func (i *Network) Scan(value interface{}) error

func (Network) Source

func (n Network) Source() NetworkSource

func (Network) String

func (i Network) String() string

func (*Network) UnmarshalJSON

func (i *Network) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Network

func (*Network) UnmarshalParam

func (n *Network) UnmarshalParam(param string) error

func (*Network) UnmarshalYAML

func (i *Network) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for Network

func (Network) Value

func (i Network) Value() (driver.Value, error)

func (Network) Values

func (Network) Values() []string

type NetworkSource

type NetworkSource string
const (
	NetworkEthereumSource  NetworkSource = "ethereum"
	NetworkArweaveSource   NetworkSource = "arweave"
	NetworkFarcasterSource NetworkSource = "farcaster"
)

type Platform

type Platform int
const (
	PlatformRSS3       Platform = iota + 1 // RSS3
	PlatformMirror                         // Mirror
	PlatformFarcaster                      // Farcaster
	PlatformParagraph                      // Paragraph
	PlatformOpenSea                        // OpenSea
	PlatformUniswap                        // Uniswap
	PlatformOptimism                       // Optimism
	PlatformAavegotchi                     // Aavegotchi
	PlatformLens                           // Lens
	PlatformLooksRare                      // LooksRare
	PlatformMatters                        // Matters
	PlatformMomoka                         // Momoka
	PlatformHighlight                      // Highlight
	PlatformAAVE                           // AAVE
	PlatformIQWiki                         // IQWiki
	PlatformLido                           // Lido
	PlatformCrossbell                      // Crossbell
	PlatformENS                            // ENS
	PlatformKiwiStand                      // KiwiStand
	Platform1inch                          // 1inch
	PlatformVSL                            // VSL
	PlatformSAVM                           // SAVM
	PlatformStargate                       // Stargate
	PlatformCurve                          // Curve
)

func PlatformString

func PlatformString(s string) (Platform, error)

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

func (p Platform) ID() string

func (Platform) IsAPlatform

func (i Platform) IsAPlatform() bool

IsAPlatform returns "true" if the value is listed in the enum definition. "false" otherwise

func (Platform) MarshalJSON

func (i Platform) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Platform

func (*Platform) Scan

func (i *Platform) Scan(value interface{}) error

func (Platform) String

func (i Platform) String() string

func (*Platform) UnmarshalJSON

func (i *Platform) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Platform

func (*Platform) UnmarshalParam

func (p *Platform) UnmarshalParam(param string) error

func (Platform) Value

func (i Platform) Value() (driver.Value, error)

func (Platform) Values

func (Platform) Values() []string

type RSSType

type RSSType uint64
const (
	TypeRSSFeed RSSType = iota + 1
)

func RSSTypeString

func RSSTypeString(s string) (RSSType, error)

RSSTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func RSSTypeValues

func RSSTypeValues() []RSSType

RSSTypeValues returns all values of the enum

func (RSSType) IsARSSType

func (i RSSType) IsARSSType() bool

IsARSSType returns "true" if the value is listed in the enum definition. "false" otherwise

func (RSSType) MarshalJSON

func (i RSSType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for RSSType

func (RSSType) Name

func (r RSSType) Name() string

func (*RSSType) Scan

func (i *RSSType) Scan(value interface{}) error

func (RSSType) String

func (i RSSType) String() string

func (RSSType) Tag

func (r RSSType) Tag() Tag

func (*RSSType) UnmarshalJSON

func (i *RSSType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for RSSType

func (RSSType) Value

func (i RSSType) Value() (driver.Value, error)

func (RSSType) Values

func (RSSType) Values() []string

type SocialType

type SocialType uint64
const (
	TypeSocialPost SocialType = iota + 1
	TypeSocialRevise
	TypeSocialComment
	TypeSocialShare
	TypeSocialProfile
	TypeSocialMint
	TypeSocialDelete
	TypeSocialProxy
	TypeSocialReward
)

func SocialTypeString

func SocialTypeString(s string) (SocialType, error)

SocialTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func SocialTypeValues

func SocialTypeValues() []SocialType

SocialTypeValues returns all values of the enum

func (SocialType) IsASocialType

func (i SocialType) IsASocialType() bool

IsASocialType returns "true" if the value is listed in the enum definition. "false" otherwise

func (SocialType) MarshalJSON

func (i SocialType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for SocialType

func (SocialType) Name

func (i SocialType) Name() string

func (*SocialType) Scan

func (i *SocialType) Scan(value interface{}) error

func (SocialType) String

func (i SocialType) String() string

func (SocialType) Tag

func (i SocialType) Tag() Tag

func (*SocialType) UnmarshalJSON

func (i *SocialType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for SocialType

func (SocialType) Value

func (i SocialType) Value() (driver.Value, error)

func (SocialType) Values

func (SocialType) Values() []string

type Tag

type Tag uint64
const (
	TagUnknown Tag = iota
	TagTransaction
	TagCollectible
	TagExchange
	TagSocial
	TagMetaverse
	TagRSS
)

func TagString

func TagString(s string) (Tag, error)

TagString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func TagValues

func TagValues() []Tag

TagValues returns all values of the enum

func (Tag) IsATag

func (i Tag) IsATag() bool

IsATag returns "true" if the value is listed in the enum definition. "false" otherwise

func (Tag) MarshalJSON

func (i Tag) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Tag

func (*Tag) Scan

func (i *Tag) Scan(value interface{}) error

func (Tag) String

func (i Tag) String() string

func (*Tag) UnmarshalJSON

func (i *Tag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Tag

func (*Tag) UnmarshalParam

func (t *Tag) UnmarshalParam(param string) error

func (Tag) Value

func (i Tag) Value() (driver.Value, error)

func (Tag) Values

func (Tag) Values() []string

type TransactionType

type TransactionType uint64
const (
	TypeTransactionTransfer TransactionType = iota + 1
	TypeTransactionApproval
	TypeTransactionBurn
	TypeTransactionMint
	TypeTransactionBridge
)

func TransactionTypeString

func TransactionTypeString(s string) (TransactionType, error)

TransactionTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func TransactionTypeValues

func TransactionTypeValues() []TransactionType

TransactionTypeValues returns all values of the enum

func (TransactionType) IsATransactionType

func (i TransactionType) IsATransactionType() bool

IsATransactionType returns "true" if the value is listed in the enum definition. "false" otherwise

func (TransactionType) MarshalJSON

func (i TransactionType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for TransactionType

func (TransactionType) Name

func (i TransactionType) Name() string

func (*TransactionType) Scan

func (i *TransactionType) Scan(value interface{}) error

func (TransactionType) String

func (i TransactionType) String() string

func (TransactionType) Tag

func (i TransactionType) Tag() Tag

func (*TransactionType) UnmarshalJSON

func (i *TransactionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for TransactionType

func (TransactionType) Value

func (i TransactionType) Value() (driver.Value, error)

func (TransactionType) Values

func (TransactionType) Values() []string

type Type

type Type interface {
	Name() string
	Tag() Tag
}

func TypeString

func TypeString(tag Tag, typeValue string) (Type, error)

type UnknownType

type UnknownType uint64
const (
	TypeUnknown UnknownType = iota
)

func UnknownTypeString

func UnknownTypeString(s string) (UnknownType, error)

UnknownTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func UnknownTypeValues

func UnknownTypeValues() []UnknownType

UnknownTypeValues returns all values of the enum

func (UnknownType) IsAUnknownType

func (i UnknownType) IsAUnknownType() bool

IsAUnknownType returns "true" if the value is listed in the enum definition. "false" otherwise

func (UnknownType) MarshalJSON

func (i UnknownType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for UnknownType

func (UnknownType) Name

func (i UnknownType) Name() string

func (*UnknownType) Scan

func (i *UnknownType) Scan(value interface{}) error

func (UnknownType) String

func (i UnknownType) String() string

func (UnknownType) Tag

func (i UnknownType) Tag() Tag

func (*UnknownType) UnmarshalJSON

func (i *UnknownType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for UnknownType

func (UnknownType) Value

func (i UnknownType) Value() (driver.Value, error)

func (UnknownType) Values

func (UnknownType) Values() []string

Jump to

Keyboard shortcuts

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