forked from cerc-io/ipld-eth-server
Update event transformer to take header ID
- rather than header - enables executing transformers without full header lookup
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user