Update event transformer to take header ID

- rather than header
- enables executing transformers without full header lookup
This commit is contained in:
Rob Mulholand
2019-08-28 09:11:06 -05:00
parent 3693ed905f
commit 66a4e20b20
5 changed files with 25 additions and 28 deletions
@@ -20,12 +20,11 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/vulcanize/vulcanizedb/pkg/core"
"github.com/vulcanize/vulcanizedb/pkg/datastore/postgres"
)
type EventTransformer interface {
Execute(logs []types.Log, header core.Header) error
Execute(logs []types.Log, headerID int64) error
GetConfig() EventTransformerConfig
}