Documentation ¶
Index ¶
- type NFTTradeScraper
- type SorareScraper
- func (scraper *SorareScraper) Close() error
- func (scraper *SorareScraper) FetchTrades() (trades []dia.NFTTrade, err error)
- func (scraper *SorareScraper) GetTotalSupply() (*big.Int, error)
- func (scraper *SorareScraper) GetTradeChannel() chan dia.NFTTrade
- func (scraper *SorareScraper) UpdateTrades() error
- type TradeScraper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NFTTradeScraper ¶
type SorareScraper ¶
type SorareScraper struct {
// contains filtered or unexported fields
}
func NewSorareScraper ¶
func NewSorareScraper(rdb *models.RelDB) *SorareScraper
func (*SorareScraper) Close ¶
func (scraper *SorareScraper) Close() error
Close closes any existing API connections
func (*SorareScraper) FetchTrades ¶
func (scraper *SorareScraper) FetchTrades() (trades []dia.NFTTrade, err error)
func (*SorareScraper) GetTotalSupply ¶
func (scraper *SorareScraper) GetTotalSupply() (*big.Int, error)
GetTotalSupply returns the total supply of the NFT from on-chain.
func (*SorareScraper) GetTradeChannel ¶
func (scraper *SorareScraper) GetTradeChannel() chan dia.NFTTrade
GetDataChannel returns the scrapers data channel.
func (*SorareScraper) UpdateTrades ¶
func (scraper *SorareScraper) UpdateTrades() error
type TradeScraper ¶
type TradeScraper struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.