gf_nft_extern_services

package
v0.0.0-...-225a141 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GFnftAlchemy

type GFnftAlchemy struct {
	Vstr              string             `bson:"v_str"` // schema_version
	Id                primitive.ObjectID `bson:"_id,omitempty"`
	IDstr             gf_core.GF_ID      `bson:"id_str"`
	DeletedBool       bool               `bson:"deleted_bool"`
	CreationUNIXtimeF float64            `bson:"creation_unix_time_f"`

	ContractAddressStr string `bson:"contract_address_str"`
	TokenIDstr         string `bson:"token_id_str"`
	TokenTypeStr       string `bson:"token_type_str"`
	TitleStr           string `bson:"title_str"`
	DescriptionStr     string `bson:"description_str"`

	TokenURIrawStr     string `bson:"token_uri_raw_str"`
	TokenURIgatewayStr string `bson:"token_uri_gateway_str"`

	MediaURIrawStr     string `bson:"media_uri_raw_str"`
	MediaURIgatewayStr string `bson:"media_uri_gateway_str"`

	MetadataNameStr        string                   `bson:"metadata_name_str"`
	MetadataImageStr       string                   `bson:"metadata_image_str"`
	MetadataExternalURLstr string                   `bson:"metadata_external_url_str"`
	MetadataAttributesLst  []map[string]interface{} `bson:"metadata_attributes_lst"`
}

-------------------------------------------------

func AlchemyGetAllNFTsForAddress

func AlchemyGetAllNFTsForAddress(pAddressStr string,
	pAPIkeyStr string,
	pChainStr string,
	pCtx context.Context,
	pRuntimeSys *gf_core.Runtime_sys) ([]*GFnftAlchemy, *gf_core.GFerror)

-------------------------------------------------

func AlchemyQueryByAddress

func AlchemyQueryByAddress(pAddressStr string,
	pOffsetInt int,
	pLimitInt int,
	pAPIkeyStr string,
	pChainStr string,
	pCtx context.Context,
	pRuntimeSys *gf_core.Runtime_sys) ([]*GFnftAlchemy, *gf_core.GFerror)

-------------------------------------------------

type GFnftOpenSea

type GFnftOpenSea struct {
	Vstr              string             `bson:"v_str"` // schema_version
	Id                primitive.ObjectID `bson:"_id,omitempty"`
	IDstr             gf_core.GF_ID      `bson:"id_str"`
	DeletedBool       bool               `bson:"deleted_bool"`
	CreationUNIXtimeF float64            `bson:"creation_unix_time_f"`

	OpenSeaIDstr    string                    `bson:"token_id_str"       mapstructure:"id"`
	NameStr         string                    `bson:"name_str"           mapstructure:"name"`
	DescriptionStr  string                    `bson:"description_str"    mapstructure:"description"`
	ExternalLinkStr string                    `bson:"external_link_str"  mapstructure:"external_link"`
	AssetContract   GFnftOpenSeaAssetContract `bson:"asset_contract_map" mapstructure:"asser_contract"`
	OwnerStr        GFnftOpenSeaOwner         `bson:"owner_str"          mapstructure:"owner"`
	PermaLinkStr    string                    `bson:"permalink_str"      mapstructure:"permalink"`

	TokenIDstr     string `bson:"token_id_str"     mapstructure:"token_id"`
	SalesNumberInt int    `bson:"sales_number_int" mapstructure:"num_sales"`

	// IMAGE
	ImageURLstr          string `bson:"image_url_str"           mapstructure:"image_url"`
	ImagePreviewURLstr   string `bson:"image_preview_url_str"   mapstructure:"image_preview_url"`
	ImageThumbnailURLstr string `bson:"image_thumbnail_url_str" mapstructure:"image_thumbnail_url"`
	ImageOriginalURLstr  string `bson:"image_original_url_str"  mapstructure:"image_original_url"`
	AnimationURLstr      string `bson:"animation_url_str"       mapstructure:"animation_url"`

	Collection GFnftOpenSeaCollection `bson:"collection_map"`
}

-------------------------------------------------

func OpenSeaGetAllNFTsForAddress

func OpenSeaGetAllNFTsForAddress(pAddressStr string,
	pCtx context.Context,
	pRuntimeSys *gf_core.Runtime_sys) ([]GFnftOpenSea, *gf_core.GFerror)

-------------------------------------------------

func OpenSeaQueryByAddress

func OpenSeaQueryByAddress(pAddressStr string,
	pOffsetInt int,
	pLimitInt int,
	pCtx context.Context,
	pRuntimeSys *gf_core.Runtime_sys) ([]GFnftOpenSea, *gf_core.GFerror)

-------------------------------------------------

type GFnftOpenSeaAssetContract

type GFnftOpenSeaAssetContract struct {
	AddressStr     string `mapstructure:"address"`
	CreatedDateStr string `mapstructure:"created_date"`
	NameStr        string `mapstructure:"name"`
	OwnerInt       int64  `mapstructure:"owner"`
	SymbolStr      string `mapstructure:"symbol"`
	DescriptionStr string `mapstructure:"description"`
}

type GFnftOpenSeaCollection

type GFnftOpenSeaCollection struct {
	NameStr        string
	DescriptionStr string
	ImageURLstr    string
	ExternalURLstr string
	CreatedDateStr string `mapstructure:"created_date"`
}

type GFnftOpenSeaOwner

type GFnftOpenSeaOwner struct {
}

Jump to

Keyboard shortcuts

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