WIP update tests for aggregate fetching

This commit is contained in:
Edvard
2018-12-07 18:10:36 +01:00
parent 47c75d055b
commit e1ba7ac5b4
34 changed files with 631 additions and 499 deletions
+1 -1
View File
@@ -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",
}
}
}
+7
View File
@@ -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
}