Documentation ¶
Index ¶
- func NormalizeCollectible(c collection.Collectible, coinIndex uint) blockatlas.Collectible
- func NormalizeCollectiblePage(collectibles []collection.Collectible, coinIndex uint) (page blockatlas.CollectiblePage)
- func NormalizeCollectiblePageV3(c *collection.Collection, srcPage []collection.Collectible, coinIndex uint) (page blockatlas.CollectiblePageV3)
- func NormalizeCollectibleV3(c *collection.Collection, a collection.Collectible, coinIndex uint) blockatlas.CollectibleV3
- func NormalizeCollection(c collection.Collection, coinIndex uint, owner string) blockatlas.Collection
- func NormalizeCollectionPageV3(collections []collection.Collection, coinIndex uint, owner string) (page blockatlas.CollectionPageV3)
- func NormalizeCollectionV3(c collection.Collection, coinIndex uint, owner string) blockatlas.CollectionV3
- func NormalizeCollections(collections []collection.Collection, coinIndex uint, owner string) (page blockatlas.CollectionPage)
- type EthereumClient
- type Platform
- func (p *Platform) Coin() coin.Coin
- func (p *Platform) CurrentBlockNumber() (int64, error)
- func (p *Platform) GetBlockByNumber(num int64) (*blockatlas.Block, error)
- func (p *Platform) GetCollectibles(owner, collectibleID string) (blockatlas.CollectiblePage, error)
- func (p *Platform) GetCollectiblesV3(owner, collectibleID string) (blockatlas.CollectiblePageV3, error)
- func (p *Platform) GetCollections(owner string) (blockatlas.CollectionPage, error)
- func (p *Platform) GetCollectionsV3(owner string) (blockatlas.CollectionPageV3, error)
- func (p *Platform) GetTokenListByAddress(address string) (blockatlas.TokenPage, error)
- func (p *Platform) Lookup(coins []uint64, name string) ([]blockatlas.Resolved, error)
- func (p *Platform) RegisterRoutes(router gin.IRouter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeCollectible ¶ added in v1.0.37
func NormalizeCollectible(c collection.Collectible, coinIndex uint) blockatlas.Collectible
func NormalizeCollectiblePage ¶ added in v1.0.37
func NormalizeCollectiblePage(collectibles []collection.Collectible, coinIndex uint) (page blockatlas.CollectiblePage)
func NormalizeCollectiblePageV3 ¶ added in v1.1.0
func NormalizeCollectiblePageV3(c *collection.Collection, srcPage []collection.Collectible, coinIndex uint) (page blockatlas.CollectiblePageV3)
func NormalizeCollectibleV3 ¶ added in v1.1.0
func NormalizeCollectibleV3(c *collection.Collection, a collection.Collectible, coinIndex uint) blockatlas.CollectibleV3
func NormalizeCollection ¶ added in v1.0.37
func NormalizeCollection(c collection.Collection, coinIndex uint, owner string) blockatlas.Collection
func NormalizeCollectionPageV3 ¶ added in v1.1.0
func NormalizeCollectionPageV3(collections []collection.Collection, coinIndex uint, owner string) (page blockatlas.CollectionPageV3)
func NormalizeCollectionV3 ¶ added in v1.1.0
func NormalizeCollectionV3(c collection.Collection, coinIndex uint, owner string) blockatlas.CollectionV3
func NormalizeCollections ¶ added in v1.1.0
func NormalizeCollections(collections []collection.Collection, coinIndex uint, owner string) (page blockatlas.CollectionPage)
Types ¶
type EthereumClient ¶ added in v1.1.0
type EthereumClient interface { GetTransactions(address string, coinIndex uint) (blockatlas.TxPage, error) GetTokenTxs(address, token string, coinIndex uint) (blockatlas.TxPage, error) GetTokenList(address string, coinIndex uint) (blockatlas.TokenPage, error) GetCurrentBlockNumber() (int64, error) GetBlockByNumber(num int64, coinIndex uint) (*blockatlas.Block, error) }
type Platform ¶ added in v1.0.0
func InitWitCollection ¶ added in v1.1.0
func InitWithBlockbook ¶ added in v1.1.0
func (*Platform) CurrentBlockNumber ¶ added in v1.0.37
func (*Platform) GetBlockByNumber ¶ added in v1.0.37
func (p *Platform) GetBlockByNumber(num int64) (*blockatlas.Block, error)
func (*Platform) GetCollectibles ¶ added in v1.0.37
func (p *Platform) GetCollectibles(owner, collectibleID string) (blockatlas.CollectiblePage, error)
func (*Platform) GetCollectiblesV3 ¶ added in v1.1.0
func (p *Platform) GetCollectiblesV3(owner, collectibleID string) (blockatlas.CollectiblePageV3, error)
func (*Platform) GetCollections ¶ added in v1.0.37
func (p *Platform) GetCollections(owner string) (blockatlas.CollectionPage, error)
func (*Platform) GetCollectionsV3 ¶ added in v1.1.0
func (p *Platform) GetCollectionsV3(owner string) (blockatlas.CollectionPageV3, error)
func (*Platform) GetTokenListByAddress ¶ added in v1.0.37
func (p *Platform) GetTokenListByAddress(address string) (blockatlas.TokenPage, error)
func (*Platform) RegisterRoutes ¶ added in v1.0.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.