Documentation ¶
Index ¶
- type Attribute
- func AttributeBigFloat(traitType string, value *big.Float) Attribute
- func AttributeBigInt(traitType string, value *big.Int) Attribute
- func AttributeInt64(traitType string, value int64) Attribute
- func AttributeString(traitType string, value string) Attribute
- func AttributeUint64(traitType string, value uint64) Attribute
- func TypedAttributeBigFloat(traitType string, value *big.Float, displayType string) Attribute
- func TypedAttributeBigInt(traitType string, value *big.Int, displayType string) Attribute
- func TypedAttributeInt64(traitType string, value int64, displayType string) Attribute
- func TypedAttributeString(traitType string, value string, displayType string) Attribute
- func TypedAttributeUint64(traitType string, value uint64, displayType string) Attribute
- type MetaData
- func (receiver *MetaData) AppendAttribute(attribute Attribute)
- func (receiver MetaData) MarshalJSON() ([]byte, error)
- func (receiver *MetaData) SetAnimationURL(value string)
- func (receiver *MetaData) SetBackgroundColor(value string)
- func (receiver *MetaData) SetDescription(value string)
- func (receiver *MetaData) SetExternalLink(value string)
- func (receiver *MetaData) SetImage(value string)
- func (receiver *MetaData) SetImageData(value string)
- func (receiver *MetaData) SetName(value string)
- func (receiver *MetaData) SetYouTubeURL(value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct {
// contains filtered or unexported fields
}
Attribute represents an 'attribute' in the "attributes" array of the NFT metadata JSON.
func AttributeInt64 ¶
func AttributeString ¶
func AttributeUint64 ¶
func TypedAttributeBigFloat ¶
func TypedAttributeBigInt ¶
func TypedAttributeInt64 ¶
func TypedAttributeString ¶
func TypedAttributeUint64 ¶
func (Attribute) MarshalJSON ¶
type MetaData ¶
type MetaData struct {
// contains filtered or unexported fields
}
MetaData represents an NFT metadata.
func (*MetaData) AppendAttribute ¶
func (MetaData) MarshalJSON ¶
func (*MetaData) SetAnimationURL ¶
func (*MetaData) SetBackgroundColor ¶
func (*MetaData) SetDescription ¶
func (*MetaData) SetExternalLink ¶
func (*MetaData) SetImageData ¶
func (*MetaData) SetYouTubeURL ¶
Click to show internal directories.
Click to hide internal directories.