WIP update tests for aggregate fetching
This commit is contained in:
@@ -27,7 +27,7 @@ type LogChunker struct {
|
||||
// Initialises a chunker by creating efficient lookup maps
|
||||
func NewLogChunker(transformerConfigs []TransformerConfig) LogChunker {
|
||||
addressToNames := map[string][]string{}
|
||||
nameToTopic0 := map[string]common.Hash{}
|
||||
nameToTopic0 := map[string]common.Hash{}
|
||||
|
||||
for _, config := range transformerConfigs {
|
||||
for _, address := range config.ContractAddresses {
|
||||
|
||||
@@ -87,4 +87,4 @@ func getExpectedColumnNames() []string {
|
||||
"vow_flog_checked",
|
||||
"flap_kick_checked",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,3 +47,10 @@ func HexToString(byteString string) string {
|
||||
value := common.HexToHash(byteString)
|
||||
return value.Big().String()
|
||||
}
|
||||
|
||||
func HexStringsToAddresses(strings []string) (addresses []common.Address) {
|
||||
for _, hexString := range strings {
|
||||
addresses = append(addresses, common.HexToAddress(hexString))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user