change transformer interface and watcher so that contract config is now fed into AddTransformers such that a single watcher can be loaded with transformers that use different cofigs

This commit is contained in:
Ian Norden
2018-11-03 13:49:24 -05:00
parent 44177e0772
commit 57820ff473
22 changed files with 352 additions and 73 deletions
+17
View File
@@ -0,0 +1,17 @@
package shared
import (
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/vulcanize/vulcanizedb/pkg/filters"
)
type ContractConfig struct {
Address string
Owner string
Abi string
ParsedAbi abi.ABI
FirstBlock int64
LastBlock int64
Name string
Filters []filters.LogFilter
}