metadata

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 11 Imported by: 3

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 CollectibleAuctionActionStrings added in v0.5.4

func CollectibleAuctionActionStrings() []string

CollectibleAuctionActionStrings 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 ExchangeLoanActionStrings added in v0.5.4

func ExchangeLoanActionStrings() []string

ExchangeLoanActionStrings 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 GovernanceVoteActionStrings added in v0.5.7

func GovernanceVoteActionStrings() []string

GovernanceVoteActionStrings 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 CollectibleAuction added in v0.5.4

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

func (CollectibleAuction) Type added in v0.5.5

func (r CollectibleAuction) Type() schema.Type

type CollectibleAuctionAction added in v0.5.4

type CollectibleAuctionAction uint64
const (
	ActionCollectibleAuctionCreate CollectibleAuctionAction = iota + 1
	ActionCollectibleAuctionBid
	ActionCollectibleAuctionFinalize
	ActionCollectibleAuctionCancel
	ActionCollectibleAuctionUpdate
	ActionCollectibleAuctionInvalidate
)

func CollectibleAuctionActionString added in v0.5.4

func CollectibleAuctionActionString(s string) (CollectibleAuctionAction, error)

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

func CollectibleAuctionActionValues added in v0.5.4

func CollectibleAuctionActionValues() []CollectibleAuctionAction

CollectibleAuctionActionValues returns all values of the enum

func (CollectibleAuctionAction) IsACollectibleAuctionAction added in v0.5.4

func (i CollectibleAuctionAction) IsACollectibleAuctionAction() bool

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

func (CollectibleAuctionAction) MarshalJSON added in v0.5.4

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

MarshalJSON implements the json.Marshaler interface for CollectibleAuctionAction

func (*CollectibleAuctionAction) Scan added in v0.5.4

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

func (CollectibleAuctionAction) String added in v0.5.4

func (i CollectibleAuctionAction) String() string

func (CollectibleAuctionAction) Type added in v0.5.4

func (*CollectibleAuctionAction) UnmarshalJSON added in v0.5.4

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

UnmarshalJSON implements the json.Unmarshaler interface for CollectibleAuctionAction

func (CollectibleAuctionAction) Value added in v0.5.4

func (CollectibleAuctionAction) Values added in v0.5.4

func (CollectibleAuctionAction) Values() []string

type CollectibleBurn added in v0.5.14

type CollectibleBurn Token

func (CollectibleBurn) Type added in v0.5.14

func (c CollectibleBurn) Type() schema.Type

type CollectibleMint added in v0.5.14

type CollectibleMint Token

func (CollectibleMint) Type added in v0.5.14

func (c CollectibleMint) Type() schema.Type

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
	ActionCollectibleTradeOffer
	ActionCollectibleTradeSet
	ActionCollectibleTradeCreate
	ActionCollectibleTradeFinalize
)

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 ExchangeLoan added in v0.5.4

type ExchangeLoan struct {
	Action     ExchangeLoanAction `json:"action"`
	Collateral Token              `json:"collateral"`
	Amount     *Token             `json:"amount,omitempty"`
}

func (ExchangeLoan) Type added in v0.5.4

func (e ExchangeLoan) Type() schema.Type

type ExchangeLoanAction added in v0.5.4

type ExchangeLoanAction uint64
const (
	ActionExchangeLoanCreate ExchangeLoanAction = iota + 1
	ActionExchangeLoanRepay
	ActionExchangeLoanRefinance
	ActionExchangeLoanLiquidate
	ActionExchangeLoanSeize
)

func ExchangeLoanActionString added in v0.5.4

func ExchangeLoanActionString(s string) (ExchangeLoanAction, error)

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

func ExchangeLoanActionValues added in v0.5.4

func ExchangeLoanActionValues() []ExchangeLoanAction

ExchangeLoanActionValues returns all values of the enum

func (ExchangeLoanAction) IsAExchangeLoanAction added in v0.5.4

func (i ExchangeLoanAction) IsAExchangeLoanAction() bool

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

func (ExchangeLoanAction) MarshalJSON added in v0.5.4

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

MarshalJSON implements the json.Marshaler interface for ExchangeLoanAction

func (*ExchangeLoanAction) Scan added in v0.5.4

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

func (ExchangeLoanAction) String added in v0.5.4

func (i ExchangeLoanAction) String() string

func (ExchangeLoanAction) Type added in v0.5.5

func (e ExchangeLoanAction) Type() schema.Type

func (*ExchangeLoanAction) UnmarshalJSON added in v0.5.4

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

UnmarshalJSON implements the json.Unmarshaler interface for ExchangeLoanAction

func (ExchangeLoanAction) Value added in v0.5.4

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

func (ExchangeLoanAction) Values added in v0.5.4

func (ExchangeLoanAction) 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 GovernanceProposal added in v0.5.6

type GovernanceProposal struct {
	ID         string   `json:"id"`
	Body       string   `json:"body,omitempty"`
	StartBlock string   `json:"start_block,omitempty"`
	EndBlock   string   `json:"end_block,omitempty"`
	Options    []string `json:"options,omitempty"`
	Link       string   `json:"link,omitempty"`
}

func (GovernanceProposal) Type added in v0.5.6

func (t GovernanceProposal) Type() schema.Type

type GovernanceVote added in v0.5.6

type GovernanceVote struct {
	Action   GovernanceVoteAction `json:"action"`
	Count    uint64               `json:"count,omitempty"`
	Reason   string               `json:"reason,omitempty"`
	Proposal GovernanceProposal   `json:"token"`
}

func (GovernanceVote) Type added in v0.5.6

func (t GovernanceVote) Type() schema.Type

type GovernanceVoteAction added in v0.5.6

type GovernanceVoteAction uint64
const (
	ActionGovernanceVoteFor GovernanceVoteAction = iota + 1
	ActionGovernanceVoteAgainst
	ActionGovernanceVoteAbstain
)

func GovernanceVoteActionString added in v0.5.7

func GovernanceVoteActionString(s string) (GovernanceVoteAction, error)

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

func GovernanceVoteActionValues added in v0.5.7

func GovernanceVoteActionValues() []GovernanceVoteAction

GovernanceVoteActionValues returns all values of the enum

func (GovernanceVoteAction) IsAGovernanceVoteAction added in v0.5.7

func (i GovernanceVoteAction) IsAGovernanceVoteAction() bool

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

func (GovernanceVoteAction) MarshalJSON added in v0.5.7

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

MarshalJSON implements the json.Marshaler interface for GovernanceVoteAction

func (*GovernanceVoteAction) Scan added in v0.5.7

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

func (GovernanceVoteAction) String added in v0.5.7

func (i GovernanceVoteAction) String() string

func (*GovernanceVoteAction) UnmarshalJSON added in v0.5.7

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

UnmarshalJSON implements the json.Unmarshaler interface for GovernanceVoteAction

func (GovernanceVoteAction) Value added in v0.5.7

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

func (GovernanceVoteAction) Values added in v0.5.7

func (GovernanceVoteAction) Values() []string

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 MetaverseBurn added in v0.5.14

type MetaverseBurn Token

func (MetaverseBurn) Type added in v0.5.14

func (m MetaverseBurn) Type() schema.Type

type MetaverseMint added in v0.5.14

type MetaverseMint Token

func (MetaverseMint) Type added in v0.5.14

func (m MetaverseMint) Type() schema.Type

type MetaverseTrade

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

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

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) 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 SocialComment added in v0.5.14

type SocialComment SocialPost

func (SocialComment) Type added in v0.5.14

func (s SocialComment) Type() schema.Type

type SocialDelete added in v0.5.14

type SocialDelete SocialPost

func (SocialDelete) Type added in v0.5.14

func (s SocialDelete) Type() schema.Type

type SocialMint added in v0.5.14

type SocialMint SocialPost

func (SocialMint) Type added in v0.5.14

func (s SocialMint) 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 (s 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 SocialRevise added in v0.5.14

type SocialRevise SocialPost

func (SocialRevise) Type added in v0.5.14

func (s SocialRevise) Type() schema.Type

type SocialReward added in v0.5.14

type SocialReward SocialPost

func (SocialReward) Type added in v0.5.14

func (s SocialReward) Type() schema.Type

type SocialShare added in v0.5.14

type SocialShare SocialPost

func (SocialShare) Type added in v0.5.14

func (s SocialShare) Type() schema.Type

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
	StandardNEP141  Standard = 141  // NEP-141
)

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 TransactionBurn added in v0.5.14

type TransactionBurn Token

func (TransactionBurn) Type added in v0.5.14

func (t TransactionBurn) Type() schema.Type

type TransactionMint added in v0.5.14

type TransactionMint Token

func (TransactionMint) Type added in v0.5.14

func (t TransactionMint) Type() schema.Type

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