collection

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetContract

type AssetContract struct {
	Address      string `json:"address"`
	Category     string `json:"name"`
	ExternalLink string `json:"external_link"`
	Type         string `json:"schema_name"`
	Version      string `json:"nft_version"`
}

type Client

type Client struct {
	blockatlas.Request
}

func (Client) GetCollectibles

func (c Client) GetCollectibles(owner string, collectibleID string) ([]Collectible, error)

func (Client) GetCollectiblesV3

func (c Client) GetCollectiblesV3(owner string, collectibleID string) (*Collection, []Collectible, error)

func (Client) GetCollections

func (c Client) GetCollections(owner string) (page []Collection, err error)

type Collectible

type Collectible struct {
	TokenId         string                 `json:"token_id"`
	AssetContract   AssetContract          `json:"asset_contract"`
	ImageUrl        string                 `json:"image_url"`
	ImagePreviewUrl string                 `json:"image_preview_url"`
	Name            string                 `json:"name"`
	ExternalLink    string                 `json:"external_link"`
	Permalink       string                 `json:"permalink"`
	Description     string                 `json:"description"`
	Collection      CollectibleCollections `json:"collection"`
}

type CollectibleCollections

type CollectibleCollections struct {
	Name         string `json:"name"`
	Slug         string `json:"slug"`
	ExternalLink string `json:"external_url"`
}

type CollectiblePage

type CollectiblePage struct {
	Collectibles []Collectible `json:"assets"`
}

type Collection

type Collection struct {
	Name        string                 `json:"name"`
	ImageUrl    string                 `json:"image_url"`
	Description string                 `json:"description"`
	ExternalUrl string                 `json:"external_url"`
	Slug        string                 `json:"slug"`
	Total       *big.Int               `json:"owned_asset_count"`
	Contracts   []PrimaryAssetContract `json:"primary_asset_contracts"`
}

func SearchCollection

func SearchCollection(collections []Collection, collectibleID string) *Collection

type DisplayData

type DisplayData struct {
	Images []string `json:"images"`
}

type PrimaryAssetContract

type PrimaryAssetContract struct {
	Name        string      `json:"name"`
	Address     string      `json:"address"`
	NftVersion  string      `json:"nft_version"`
	Symbol      string      `json:"symbol"`
	Description string      `json:"description"`
	Type        string      `json:"schema_name"`
	Data        DisplayData `json:"display_data"`
	Url         string      `json:"external_link"`
}

Jump to

Keyboard shortcuts

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