analytics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Artists = map[string]*Artist{
	"OSF": {
		ID:                  "OSF",
		Name:                "OSF",
		CollectionSets:      []CollectionSet{*CollectionSets["Editions"], *CollectionSets["RedLiteDistrict"], *CollectionSets["7DeadlySins"], *CollectionSets["DistilleryPP"], *CollectionSets["DistillerySL"]},
		MultiCollectionSets: []MultiCollectionSet{*MultiCollectionSets["OSFRLDEditions"], *MultiCollectionSets["OSFRLDEditionsSins"], *MultiCollectionSets["OSFRLDEditionsSinsPP"], *MultiCollectionSets["OSFRLDEditionsSinsPPLemonade"]},
	},
}
View Source
var CollectionSets = map[string]*CollectionSet{
	"Editions": {
		ID:              "Editions",
		Name:            "Editions",
		ContractAddress: common.HexToAddress("0xc23a563a26afff06e945ace77173e1568f288ce5"),
		TokenIDs:        []int{1, 3, 4},
	},
	"RedLiteDistrict": {
		ID:              "RedLiteDistrict",
		Name:            "Red Lite District",
		ContractAddress: common.HexToAddress("0x513cd71defc801b9c1aa763db47b5df223da77a2"),
		TokenIDs:        []int{-1},
	},
	"7DeadlySins": {
		ID:              "7DeadlySins",
		Name:            "7 Deadly Sins",
		ContractAddress: common.HexToAddress("0x8297d8e55c27aa6ce2d8a65b1fa3debb02410efc"),
		TokenIDs:        []int{2, 3, 4},
	},
	"DistilleryPP": {
		ID:              "DistilleryPP",
		Name:            "Distillery - The Private Party",
		ContractAddress: common.HexToAddress("0x26c7de7d475aad40cf8211c0e9ad8469aa4e6878"),
		TokenIDs:        []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35},
		Any:             true,
	},
	"DistillerySL": {
		ID:              "DistillerySL",
		Name:            "Distillery - sangsom & lemonade",
		ContractAddress: common.HexToAddress("0x26c7de7d475aad40cf8211c0e9ad8469aa4e6878"),
		TokenIDs:        []int{36, 37, 38, 39, 40},
		Any:             true,
	},
}
View Source
var MultiCollectionSets = map[string]*MultiCollectionSet{
	"OSFRLDEditions": {
		ID:             "OSFRLDEditions",
		Name:           "RLD & Editions",
		CollectionSets: []CollectionSet{*CollectionSets["Editions"], *CollectionSets["RedLiteDistrict"]},
	},
	"OSFRLDEditionsSins": {
		ID:             "OSFRLDEditionsSins",
		Name:           "RLD & Editions & 7 Sins",
		CollectionSets: []CollectionSet{*CollectionSets["Editions"], *CollectionSets["RedLiteDistrict"], *CollectionSets["7DeadlySins"]},
	},
	"OSFRLDEditionsSinsPP": {
		ID:             "OSFRLDEditionsSinsPP",
		Name:           "RLD & Editions & 7 Sins & Private Party",
		CollectionSets: []CollectionSet{*CollectionSets["Editions"], *CollectionSets["RedLiteDistrict"], *CollectionSets["7DeadlySins"], *CollectionSets["DistilleryPP"]},
	},
	"OSFRLDEditionsSinsPPLemonade": {
		ID:             "OSFRLDEditionsSinsPPLemonade",
		Name:           "RLD & Editions & 7 Sins & Private Party & Lemonade",
		CollectionSets: []CollectionSet{*CollectionSets["Editions"], *CollectionSets["RedLiteDistrict"], *CollectionSets["7DeadlySins"], *CollectionSets["DistilleryPP"], *CollectionSets["DistillerySL"]},
	},
}

Functions

func FetchOwnersFor

func FetchOwnersFor(apiToken string, contractAddress common.Address, tokenID int) (map[string]*Owner, error)

func FetchSetOwnersFor

func FetchSetOwnersFor(apiToken string, set *CollectionSet) ([]common.Address, error)

func GetSetOwner

func GetSetOwner(_ *cobra.Command, _ []string)

Types

type Artist

type Artist struct {
	ID                  string               `json:"id"`
	Name                string               `json:"name"`
	CollectionSets      []CollectionSet      `json:"collectionsets"`
	MultiCollectionSets []MultiCollectionSet `json:"multicollectionsets"`
}

type CollectionSet

type CollectionSet struct {
	ID              string         `json:"id"`
	Name            string         `json:"name"`
	ContractAddress common.Address `json:"contractAddress"`
	TokenIDs        []int          `json:"token_ids"`
	Any             bool           `json:"any"`
}

type MultiCollectionSet

type MultiCollectionSet struct {
	ID             string          `json:"id"`
	Name           string          `json:"name"`
	CollectionSets []CollectionSet `json:"ollectionsets"`
}

type Owner

type Owner struct {
	TokenAddress      string    `json:"token_address"`
	TokenID           string    `json:"token_id"`
	ContractType      string    `json:"contract_type"`
	OwnerOf           string    `json:"owner_of"`
	BlockNumber       string    `json:"block_number"`
	BlockNumberMinted string    `json:"block_number_minted"`
	TokenURI          string    `json:"token_uri"`
	Metadata          string    `json:"metadata"`
	Amount            string    `json:"amount"`
	Name              string    `json:"name"`
	Symbol            string    `json:"symbol"`
	TokenHash         string    `json:"token_hash"`
	LastTokenURISync  time.Time `json:"last_token_uri_sync"`
	LastMetadataSync  time.Time `json:"last_metadata_sync"`
}

type ResponseOwner

type ResponseOwner struct {
	Status   string   `json:"status"`
	Total    int      `json:"total"`
	Page     int      `json:"page"`
	PageSize int      `json:"page_size"`
	Cursor   string   `json:"cursor"`
	Result   []*Owner `json:"result"`
}

Jump to

Keyboard shortcuts

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