Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ERC721Transfer ¶
type ERC721Transfer struct { BlockNumber int TimeStamp time.Time Hash string `gorm:"szie,80"` Nonce int BlockHash string `gorm:"szie,80"` From string `gorm:"szie,80"` ContractAddress string `gorm:"szie,80"` To string `gorm:"szie,80"` TokenID int64 TokenName string `gorm:"szie,255"` TokenSymbol string `gorm:"szie,255"` TokenDecimal uint8 TransactionIndex int Gas int GasPrice int64 GasUsed int CumulativeGasUsed int Input string `gorm:"szie,255"` Confirmations int }
type EthlogRepo ¶
type EthlogRepo interface { // Get(ctx context.Context, name string) (*Transaction, error) // GetList(ctx context.Context) ([]*Transaction, error) // Update(ctx context.Context, metadata *Transaction) (*Transaction, error) // Create(ctx context.Context, metadata *Transaction) error GetERC721TransferLogs(ctx context.Context, address string, page int, pageSize int) ([]ERC721Transfer, error) Insert(data []*ERC721Transfer) error }
type EthlogService ¶
type EthlogService struct {
// contains filtered or unexported fields
}
func NewEthlogService ¶
func NewEthlogService(repo EthlogRepo, options *options.EtherScanOptions) *EthlogService
func (*EthlogService) GetTransferLogs ¶
func (srv *EthlogService) GetTransferLogs(ctx context.Context, address string, page int, pageSize int) ([]ERC721Transfer, error)
func (*EthlogService) PullTransferLogs ¶
func (src *EthlogService) PullTransferLogs(address *string) error
Click to show internal directories.
Click to hide internal directories.