ethereum

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: 13 Imported by: 1

Documentation

Index

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

type Platform struct {
	CoinIndex uint
	RpcURL    string
	// contains filtered or unexported fields
}

func Init added in v1.1.0

func Init(coinType uint, api, rpc string) *Platform

func InitWitCollection added in v1.1.0

func InitWitCollection(coinType uint, api, rpc, blockbookApi, collectionApi, collectionKey string) *Platform

func InitWithBlockbook added in v1.1.0

func InitWithBlockbook(coinType uint, blockbookApi, rpc string) *Platform

func (*Platform) Coin added in v1.0.0

func (p *Platform) Coin() coin.Coin

func (*Platform) CurrentBlockNumber added in v1.0.37

func (p *Platform) CurrentBlockNumber() (int64, error)

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) Lookup added in v1.0.37

func (p *Platform) Lookup(coins []uint64, name string) ([]blockatlas.Resolved, error)

func (*Platform) RegisterRoutes added in v1.0.0

func (p *Platform) RegisterRoutes(router gin.IRouter)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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