Rename handlers to transformers

This commit is contained in:
Rob Mulholand
2018-03-16 15:07:19 -05:00
parent a11fb709b2
commit 02b23ef748
4 changed files with 37 additions and 37 deletions
+23
View File
@@ -0,0 +1,23 @@
package shared
import (
"github.com/ethereum/go-ethereum/common"
"github.com/vulcanize/vulcanizedb/pkg/core"
"github.com/vulcanize/vulcanizedb/pkg/datastore/postgres"
)
type Transformer interface {
Execute() error
}
type TransformerInitializer func(db *postgres.DB, blockchain core.Blockchain) Transformer
func HexToInt64(byteString string) int64 {
value := common.HexToHash(byteString)
return value.Big().Int64()
}
func HexToString(byteString string) string {
value := common.HexToHash(byteString)
return value.Big().String()
}