metadata

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectibleApprovalActionStrings

func CollectibleApprovalActionStrings() []string

CollectibleApprovalActionStrings returns a slice of all String values of the enum

func CollectibleTradeActionStrings

func CollectibleTradeActionStrings() []string

CollectibleTradeActionStrings returns a slice of all String values of the enum

func ExchangeLiquidityActionStrings

func ExchangeLiquidityActionStrings() []string

ExchangeLiquidityActionStrings returns a slice of all String values of the enum

func ExchangeStakingActionStrings

func ExchangeStakingActionStrings() []string

ExchangeStakingActionStrings returns a slice of all String values of the enum

func MetaverseTradeActionStrings

func MetaverseTradeActionStrings() []string

MetaverseTradeActionStrings returns a slice of all String values of the enum

func SocialProfileActionStrings

func SocialProfileActionStrings() []string

SocialProfileActionStrings returns a slice of all String values of the enum

func SocialProxyActionStrings

func SocialProxyActionStrings() []string

SocialProxyActionStrings returns a slice of all String values of the enum

func StandardStrings

func StandardStrings() []string

StandardStrings returns a slice of all String values of the enum

func TransactionApprovalActionStrings

func TransactionApprovalActionStrings() []string

TransactionApprovalActionStrings returns a slice of all String values of the enum

func TransactionBridgeActionStrings

func TransactionBridgeActionStrings() []string

TransactionBridgeActionStrings returns a slice of all String values of the enum

Types

type Authors

type Authors struct {
	Name string `json:"name"`
}

type CollectibleApproval

type CollectibleApproval struct {
	Action CollectibleApprovalAction `json:"action"`

	Token
}

func (CollectibleApproval) Type

func (c CollectibleApproval) Type() schema.Type

type CollectibleApprovalAction

type CollectibleApprovalAction uint64
const (
	ActionCollectibleApprovalApprove CollectibleApprovalAction = iota + 1
	ActionCollectibleApprovalRevoke
)

func CollectibleApprovalActionString

func CollectibleApprovalActionString(s string) (CollectibleApprovalAction, error)

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

func CollectibleApprovalActionValues

func CollectibleApprovalActionValues() []CollectibleApprovalAction

CollectibleApprovalActionValues returns all values of the enum

func (CollectibleApprovalAction) IsACollectibleApprovalAction

func (i CollectibleApprovalAction) IsACollectibleApprovalAction() bool

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

func (CollectibleApprovalAction) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for CollectibleApprovalAction

func (*CollectibleApprovalAction) Scan

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

func (CollectibleApprovalAction) String

func (i CollectibleApprovalAction) String() string

func (CollectibleApprovalAction) Type

func (*CollectibleApprovalAction) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for CollectibleApprovalAction

func (CollectibleApprovalAction) Value

func (CollectibleApprovalAction) Values

func (CollectibleApprovalAction) Values() []string

type CollectibleTrade

type CollectibleTrade struct {
	Action CollectibleTradeAction `json:"action"`
	Token
	Cost *Token `json:"cost,omitempty"`
}

func (CollectibleTrade) Type

func (r CollectibleTrade) Type() schema.Type

type CollectibleTradeAction

type CollectibleTradeAction uint64
const (
	ActionCollectibleTradeBuy CollectibleTradeAction = iota + 1
	ActionCollectibleTradeSell
)

func CollectibleTradeActionString

func CollectibleTradeActionString(s string) (CollectibleTradeAction, error)

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

func CollectibleTradeActionValues

func CollectibleTradeActionValues() []CollectibleTradeAction

CollectibleTradeActionValues returns all values of the enum

func (CollectibleTradeAction) IsACollectibleTradeAction

func (i CollectibleTradeAction) IsACollectibleTradeAction() bool

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

func (CollectibleTradeAction) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for CollectibleTradeAction

func (*CollectibleTradeAction) Scan

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

func (CollectibleTradeAction) String

func (i CollectibleTradeAction) String() string

func (CollectibleTradeAction) Type

func (*CollectibleTradeAction) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for CollectibleTradeAction

func (CollectibleTradeAction) Value

func (CollectibleTradeAction) Values

func (CollectibleTradeAction) Values() []string

type CollectibleTransfer

type CollectibleTransfer Token

func (CollectibleTransfer) Type

func (c CollectibleTransfer) Type() schema.Type

type ExchangeLiquidity

type ExchangeLiquidity struct {
	Action ExchangeLiquidityAction `json:"action"`
	Tokens []Token                 `json:"tokens"`
}

func (ExchangeLiquidity) Type

func (e ExchangeLiquidity) Type() schema.Type

type ExchangeLiquidityAction

type ExchangeLiquidityAction uint64
const (
	ActionExchangeLiquidityAdd ExchangeLiquidityAction = iota + 1
	ActionExchangeLiquidityBorrow
	ActionExchangeLiquidityCollect
	ActionExchangeLiquidityRemove
	ActionExchangeLiquidityRepay
	ActionExchangeLiquiditySupply
	ActionExchangeLiquidityWithdraw
)

func ExchangeLiquidityActionString

func ExchangeLiquidityActionString(s string) (ExchangeLiquidityAction, error)

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

func ExchangeLiquidityActionValues

func ExchangeLiquidityActionValues() []ExchangeLiquidityAction

ExchangeLiquidityActionValues returns all values of the enum

func (ExchangeLiquidityAction) IsAExchangeLiquidityAction

func (i ExchangeLiquidityAction) IsAExchangeLiquidityAction() bool

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

func (ExchangeLiquidityAction) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for ExchangeLiquidityAction

func (*ExchangeLiquidityAction) Scan

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

func (ExchangeLiquidityAction) String

func (i ExchangeLiquidityAction) String() string

func (ExchangeLiquidityAction) Type

func (*ExchangeLiquidityAction) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for ExchangeLiquidityAction

func (ExchangeLiquidityAction) Value

func (ExchangeLiquidityAction) Values

func (ExchangeLiquidityAction) Values() []string

type ExchangeStaking

type ExchangeStaking struct {
	Action ExchangeStakingAction  `json:"action"`
	Token  Token                  `json:"token"`
	Period *ExchangeStakingPeriod `json:"period,omitempty"`
}

func (ExchangeStaking) Type

func (e ExchangeStaking) Type() schema.Type

type ExchangeStakingAction

type ExchangeStakingAction uint64
const (
	ActionExchangeStakingStake ExchangeStakingAction = iota + 1
	ActionExchangeStakingUnstake
	ActionExchangeStakingClaim
)

func ExchangeStakingActionString

func ExchangeStakingActionString(s string) (ExchangeStakingAction, error)

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

func ExchangeStakingActionValues

func ExchangeStakingActionValues() []ExchangeStakingAction

ExchangeStakingActionValues returns all values of the enum

func (ExchangeStakingAction) IsAExchangeStakingAction

func (i ExchangeStakingAction) IsAExchangeStakingAction() bool

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

func (ExchangeStakingAction) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for ExchangeStakingAction

func (*ExchangeStakingAction) Scan

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

func (ExchangeStakingAction) String

func (i ExchangeStakingAction) String() string

func (ExchangeStakingAction) Type

func (*ExchangeStakingAction) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for ExchangeStakingAction

func (ExchangeStakingAction) Value

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

func (ExchangeStakingAction) Values

func (ExchangeStakingAction) Values() []string

type ExchangeStakingPeriod

type ExchangeStakingPeriod struct {
	Start time.Time `json:"start"`
	End   time.Time `json:"end"`
}

type ExchangeSwap

type ExchangeSwap struct {
	From Token `json:"from"`
	To   Token `json:"to"`
}

func (ExchangeSwap) Type

func (e ExchangeSwap) Type() schema.Type

type Media

type Media struct {
	Address  string `json:"address"`
	MimeType string `json:"mime_type"`
}

type Metadata

type Metadata interface {
	Type() schema.Type
}

func Unmarshal

func Unmarshal(metadataType schema.Type, data json.RawMessage) (Metadata, error)

type MetaverseTrade

type MetaverseTrade struct {
	Action MetaverseTradeAction `json:"action,omitempty"`

	Token
	Cost Token `json:"cost,omitempty"`
}

func (MetaverseTrade) Tag

func (m MetaverseTrade) Tag() tag.Tag

func (MetaverseTrade) Type

func (m MetaverseTrade) Type() schema.Type

type MetaverseTradeAction

type MetaverseTradeAction uint64
const (
	ActionMetaverseTradeBuy MetaverseTradeAction = iota + 1
	ActionMetaverseTradeList
	ActionMetaverseTradeSell
)

func MetaverseTradeActionString

func MetaverseTradeActionString(s string) (MetaverseTradeAction, error)

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

func MetaverseTradeActionValues

func MetaverseTradeActionValues() []MetaverseTradeAction

MetaverseTradeActionValues returns all values of the enum

func (MetaverseTradeAction) IsAMetaverseTradeAction

func (i MetaverseTradeAction) IsAMetaverseTradeAction() bool

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

func (MetaverseTradeAction) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for MetaverseTradeAction

func (*MetaverseTradeAction) Scan

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

func (MetaverseTradeAction) String

func (i MetaverseTradeAction) String() string

func (MetaverseTradeAction) Type

func (t MetaverseTradeAction) Type() schema.Type

func (*MetaverseTradeAction) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for MetaverseTradeAction

func (MetaverseTradeAction) Value

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

func (MetaverseTradeAction) Values

func (MetaverseTradeAction) Values() []string

type MetaverseTransfer

type MetaverseTransfer Token

func (MetaverseTransfer) Tag

func (m MetaverseTransfer) Tag() tag.Tag

func (MetaverseTransfer) Type

func (m MetaverseTransfer) Type() schema.Type

type NonFungibleTokenMetadata

type NonFungibleTokenMetadata struct {
	Title        string          `json:"title,omitempty"`
	Description  string          `json:"description,omitempty"`
	ImageURL     string          `json:"image_url,omitempty"`
	ExternalURL  string          `json:"external_url,omitempty"`
	MediaURL     string          `json:"media_url,omitempty"`
	AnimationURL string          `json:"animation_url,omitempty"`
	Properties   json.RawMessage `json:"properties,omitempty"`
}

type RSS

type RSS struct {
	Title       string    `json:"title"`
	Description string    `json:"description"`
	PubDate     string    `json:"pub_date,omitempty"`
	Authors     []Authors `json:"authors,omitempty"`
}

func (RSS) Type

func (r RSS) Type() schema.Type

type SocialPost

type SocialPost struct {
	Handle        string   `json:"handle,omitempty"`
	Title         string   `json:"title,omitempty"`
	Summary       string   `json:"summary,omitempty"`
	Body          string   `json:"body,omitempty"`
	Media         []Media  `json:"media,omitempty"`
	ProfileID     string   `json:"profile_id,omitempty"`
	PublicationID string   `json:"publication_id,omitempty"`
	ContentURI    string   `json:"content_uri,omitempty"`
	Tags          []string `json:"tags,omitempty"`
	AuthorURL     string   `json:"author_url,omitempty"`
	Reward        *Token   `json:"reward,omitempty"`
	Timestamp     uint64   `json:"timestamp,omitempty"`

	Target    *SocialPost `json:"target,omitempty"`
	TargetURL string      `json:"target_url,omitempty"`
}

func (SocialPost) Type

func (p SocialPost) Type() schema.Type

type SocialProfile

type SocialProfile struct {
	Action    SocialProfileAction `json:"action,omitempty"`
	ProfileID string              `json:"profile_id,omitempty"`
	Address   common.Address      `json:"address,omitempty"`
	Handle    string              `json:"handle,omitempty"`
	ImageURI  string              `json:"image_uri,omitempty"`
	Bio       string              `json:"bio,omitempty"`
	Name      string              `json:"name,omitempty"`
	Expiry    *time.Time          `json:"expiry,omitempty"`
	Key       string              `json:"key,omitempty"`
	Value     string              `json:"value,omitempty"`
}

func (SocialProfile) Type

func (f SocialProfile) Type() schema.Type

type SocialProfileAction

type SocialProfileAction uint64
const (
	ActionSocialProfileCreate SocialProfileAction = iota + 1
	ActionSocialProfileRenew
	ActionSocialProfileUnwrap
	ActionSocialProfileUpdate
	ActionSocialProfileWrap
)

func SocialProfileActionString

func SocialProfileActionString(s string) (SocialProfileAction, error)

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

func SocialProfileActionValues

func SocialProfileActionValues() []SocialProfileAction

SocialProfileActionValues returns all values of the enum

func (SocialProfileAction) IsASocialProfileAction

func (i SocialProfileAction) IsASocialProfileAction() bool

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

func (SocialProfileAction) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for SocialProfileAction

func (*SocialProfileAction) Scan

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

func (SocialProfileAction) String

func (i SocialProfileAction) String() string

func (SocialProfileAction) Type

func (s SocialProfileAction) Type() schema.Type

func (*SocialProfileAction) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for SocialProfileAction

func (SocialProfileAction) Value

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

func (SocialProfileAction) Values

func (SocialProfileAction) Values() []string

type SocialProxy

type SocialProxy struct {
	Action       SocialProxyAction `json:"action,omitempty"`
	ProxyAddress common.Address    `json:"proxy_address"`

	Profile SocialProfile `json:"profile,omitempty"`
}

func (SocialProxy) Tag

func (s SocialProxy) Tag() tag.Tag

func (SocialProxy) Type

func (s SocialProxy) Type() schema.Type

type SocialProxyAction

type SocialProxyAction uint64
const (
	ActionSocialProxyAppoint SocialProxyAction = iota + 1
	ActionSocialProxyRemove
)

func SocialProxyActionString

func SocialProxyActionString(s string) (SocialProxyAction, error)

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

func SocialProxyActionValues

func SocialProxyActionValues() []SocialProxyAction

SocialProxyActionValues returns all values of the enum

func (SocialProxyAction) IsASocialProxyAction

func (i SocialProxyAction) IsASocialProxyAction() bool

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

func (SocialProxyAction) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for SocialProxyAction

func (*SocialProxyAction) Scan

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

func (SocialProxyAction) String

func (i SocialProxyAction) String() string

func (SocialProxyAction) Type

func (s SocialProxyAction) Type() schema.Type

func (*SocialProxyAction) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for SocialProxyAction

func (SocialProxyAction) Value

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

func (SocialProxyAction) Values

func (SocialProxyAction) Values() []string

type Standard

type Standard int
const (
	StandardUnknown Standard = 0    // Unknown
	StandardERC20   Standard = 20   // ERC-20
	StandardERC165  Standard = 165  // ERC-165
	StandardERC721  Standard = 721  // ERC-721
	StandardERC1155 Standard = 1155 // ERC-1155
	StandardERC1967 Standard = 1967 // ERC-1967
)

func StandardString

func StandardString(s string) (Standard, error)

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

func StandardValues

func StandardValues() []Standard

StandardValues returns all values of the enum

func (Standard) IsAStandard

func (i Standard) IsAStandard() bool

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

func (Standard) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for Standard

func (*Standard) Scan

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

func (Standard) String

func (i Standard) String() string

func (*Standard) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for Standard

func (Standard) Value

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

func (Standard) Values

func (Standard) Values() []string

type Token

type Token struct {
	Address        *string          `json:"address,omitempty"`
	ID             *decimal.Decimal `json:"id,omitempty"`
	Value          *decimal.Decimal `json:"value,omitempty"`
	Name           string           `json:"name,omitempty"`
	Symbol         string           `json:"symbol,omitempty"`
	URI            string           `json:"uri,omitempty"`
	Decimals       uint8            `json:"decimals,omitempty"`
	Standard       Standard         `json:"standard,omitempty"`
	ParsedImageURL string           `json:"parsed_image_url,omitempty"`
}

type TransactionApproval

type TransactionApproval struct {
	Action TransactionApprovalAction `json:"action"`

	Token
}

func (TransactionApproval) Type

func (t TransactionApproval) Type() schema.Type

type TransactionApprovalAction

type TransactionApprovalAction uint64
const (
	ActionTransactionApprove TransactionApprovalAction = iota + 1
	ActionTransactionRevoke
)

func TransactionApprovalActionString

func TransactionApprovalActionString(s string) (TransactionApprovalAction, error)

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

func TransactionApprovalActionValues

func TransactionApprovalActionValues() []TransactionApprovalAction

TransactionApprovalActionValues returns all values of the enum

func (TransactionApprovalAction) IsATransactionApprovalAction

func (i TransactionApprovalAction) IsATransactionApprovalAction() bool

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

func (TransactionApprovalAction) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for TransactionApprovalAction

func (*TransactionApprovalAction) Scan

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

func (TransactionApprovalAction) String

func (i TransactionApprovalAction) String() string

func (*TransactionApprovalAction) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for TransactionApprovalAction

func (TransactionApprovalAction) Value

func (TransactionApprovalAction) Values

func (TransactionApprovalAction) Values() []string

type TransactionBridge

type TransactionBridge struct {
	Action        TransactionBridgeAction `json:"action"`
	SourceNetwork network.Network         `json:"source_network"`
	TargetNetwork network.Network         `json:"target_network"`
	Token         Token                   `json:"token"`
}

func (TransactionBridge) Type

func (t TransactionBridge) Type() schema.Type

type TransactionBridgeAction

type TransactionBridgeAction uint64
const (
	ActionTransactionBridgeDeposit TransactionBridgeAction = iota + 1
	ActionTransactionBridgeWithdraw
)

func TransactionBridgeActionString

func TransactionBridgeActionString(s string) (TransactionBridgeAction, error)

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

func TransactionBridgeActionValues

func TransactionBridgeActionValues() []TransactionBridgeAction

TransactionBridgeActionValues returns all values of the enum

func (TransactionBridgeAction) IsATransactionBridgeAction

func (i TransactionBridgeAction) IsATransactionBridgeAction() bool

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

func (TransactionBridgeAction) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for TransactionBridgeAction

func (*TransactionBridgeAction) Scan

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

func (TransactionBridgeAction) String

func (i TransactionBridgeAction) String() string

func (TransactionBridgeAction) Type

func (*TransactionBridgeAction) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for TransactionBridgeAction

func (TransactionBridgeAction) Value

func (TransactionBridgeAction) Values

func (TransactionBridgeAction) Values() []string

type TransactionTransfer

type TransactionTransfer Token

func (TransactionTransfer) Type

func (t TransactionTransfer) Type() schema.Type

Jump to

Keyboard shortcuts

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