Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockDataFromSource ¶
type BlockDataFromSource struct { BlockNumber uint64 BlockTimestamp time.Time TransactionCount uint }
BlockDataFromSource is the data received from source (the chain)
func GetBlockFromChain ¶
func GetBlockFromChain(client ethereum.ChainReader, blockKey BlockKey) ( blockData BlockDataFromSource, err error)
type BlockMap ¶
type BlockMap map[BlockKey]BlockMapValue
func BuildUniqueBlocksFromEvents ¶
func BuildUniqueBlocksFromEvents(allEvents []*chain.TransferEvent) (uniqueBlocksMap BlockMap)
type BlockMapValue ¶
Click to show internal directories.
Click to hide internal directories.