Remove unused transformer config struct

This commit is contained in:
Rob Mulholand 2018-11-06 12:15:06 -06:00
parent cb141f7cb7
commit b2a78f1da4
33 changed files with 32 additions and 41 deletions

View File

@ -20,7 +20,7 @@ import (
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
)
var BiteConfig = shared.SingleTransformerConfig{
var BiteConfig = shared.TransformerConfig{
TransformerName: shared.BiteLabel,
ContractAddresses: []string{shared.CatContractAddress},
ContractAbi: shared.CatABI,

View File

@ -16,7 +16,7 @@ package chop_lump
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var CatFileChopLumpConfig = shared.SingleTransformerConfig{
var CatFileChopLumpConfig = shared.TransformerConfig{
TransformerName: shared.CatFileChopLumpLabel,
ContractAddresses: []string{shared.CatContractAddress},
ContractAbi: shared.CatABI,

View File

@ -16,7 +16,7 @@ package flip
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var CatFileFlipConfig = shared.SingleTransformerConfig{
var CatFileFlipConfig = shared.TransformerConfig{
TransformerName: shared.CatFileFlipLabel,
ContractAddresses: []string{shared.CatContractAddress},
ContractAbi: shared.CatABI,

View File

@ -16,7 +16,7 @@ package pit_vow
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var CatFilePitVowConfig = shared.SingleTransformerConfig{
var CatFilePitVowConfig = shared.TransformerConfig{
TransformerName: shared.CatFilePitVowLabel,
ContractAddresses: []string{shared.CatContractAddress},
ContractAbi: shared.CatABI,

View File

@ -16,7 +16,7 @@ package deal
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var DealConfig = shared.SingleTransformerConfig{
var DealConfig = shared.TransformerConfig{
TransformerName: shared.DealLabel,
ContractAddresses: []string{shared.FlipperContractAddress, shared.FlopperContractAddress},
ContractAbi: shared.FlipperABI,

View File

@ -16,7 +16,7 @@ package dent
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var DentConfig = shared.SingleTransformerConfig{
var DentConfig = shared.TransformerConfig{
TransformerName: shared.DentLabel,
ContractAddresses: []string{shared.FlipperContractAddress},
ContractAbi: shared.FlipperABI,

View File

@ -16,7 +16,7 @@ package drip_drip
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var DripDripConfig = shared.SingleTransformerConfig{
var DripDripConfig = shared.TransformerConfig{
TransformerName: shared.DripDripLabel,
ContractAddresses: []string{shared.DripContractAddress},
ContractAbi: shared.DripABI,

View File

@ -16,7 +16,7 @@ package ilk
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var DripFileIlkConfig = shared.SingleTransformerConfig{
var DripFileIlkConfig = shared.TransformerConfig{
TransformerName: shared.DripFileIlkLabel,
ContractAddresses: []string{shared.DripContractAddress},
ContractAbi: shared.DripABI,

View File

@ -16,7 +16,7 @@ package repo
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var DripFileRepoConfig = shared.SingleTransformerConfig{
var DripFileRepoConfig = shared.TransformerConfig{
TransformerName: shared.DripFileRepoLabel,
ContractAddresses: []string{shared.DripContractAddress},
ContractAbi: shared.DripABI,

View File

@ -16,7 +16,7 @@ package vow
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var DripFileVowConfig = shared.SingleTransformerConfig{
var DripFileVowConfig = shared.TransformerConfig{
TransformerName: shared.DripFileVowLabel,
ContractAddresses: []string{shared.DripContractAddress},
ContractAbi: shared.DripABI,

View File

@ -25,7 +25,7 @@ import (
)
type LogNoteTransformer struct {
Config shared.SingleTransformerConfig
Config shared.TransformerConfig
Converter LogNoteConverter
Repository Repository
Fetcher shared.SettableLogFetcher

View File

@ -25,7 +25,7 @@ import (
)
type Transformer struct {
Config shared.SingleTransformerConfig
Config shared.TransformerConfig
Converter Converter
Repository Repository
Fetcher shared.SettableLogFetcher

View File

@ -16,7 +16,7 @@ package flap_kick
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var FlapKickConfig = shared.SingleTransformerConfig{
var FlapKickConfig = shared.TransformerConfig{
TransformerName: shared.FlapKickLabel,
ContractAddresses: []string{shared.FlapperContractAddress},
ContractAbi: shared.FlapperABI,

View File

@ -16,7 +16,7 @@ package flip_kick
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var FlipKickConfig = shared.SingleTransformerConfig{
var FlipKickConfig = shared.TransformerConfig{
TransformerName: shared.FlipKickLabel,
ContractAddresses: []string{shared.FlipperContractAddress},
ContractAbi: shared.FlipperABI,

View File

@ -16,7 +16,7 @@ package flop_kick
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var Config = shared.SingleTransformerConfig{
var Config = shared.TransformerConfig{
TransformerName: shared.FlopKickLabel,
ContractAddresses: []string{shared.FlopperContractAddress},
ContractAbi: shared.FlopperABI,

View File

@ -16,7 +16,7 @@ package frob
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var FrobConfig = shared.SingleTransformerConfig{
var FrobConfig = shared.TransformerConfig{
TransformerName: shared.FrobLabel,
ContractAddresses: []string{shared.PitContractAddress},
ContractAbi: shared.PitABI,

View File

@ -18,7 +18,7 @@ import (
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
)
var DebtCeilingFileConfig = shared.SingleTransformerConfig{
var DebtCeilingFileConfig = shared.TransformerConfig{
TransformerName: shared.PitFileDebtCeilingLabel,
ContractAddresses: []string{shared.PitContractAddress},
ContractAbi: shared.PitABI,

View File

@ -18,7 +18,7 @@ import (
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
)
var IlkFileConfig = shared.SingleTransformerConfig{
var IlkFileConfig = shared.TransformerConfig{
TransformerName: shared.PitFileIlkLabel,
ContractAddresses: []string{shared.PitContractAddress},
ContractAbi: shared.PitABI,

View File

@ -18,7 +18,7 @@ import (
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
)
var StabilityFeeFileConfig = shared.SingleTransformerConfig{
var StabilityFeeFileConfig = shared.TransformerConfig{
TransformerName: shared.PitFileStabilityFeeLabel,
ContractAddresses: []string{shared.PitContractAddress},
ContractAbi: shared.PitABI,

View File

@ -16,7 +16,7 @@ package price_feeds
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var PriceFeedConfig = shared.SingleTransformerConfig{
var PriceFeedConfig = shared.TransformerConfig{
TransformerName: shared.PriceFeedLabel,
ContractAddresses: []string{
shared.PepContractAddress,

View File

@ -28,15 +28,6 @@ type Transformer interface {
type TransformerInitializer func(db *postgres.DB, blockChain core.BlockChain) Transformer
type TransformerConfig struct {
TransformerName string
ContractAddresses []string
ContractAbi string
Topics []string // TODO Change this to single topic
StartingBlockNumber int64
EndingBlockNumber int64
}
type SingleTransformerConfig struct {
TransformerName string
ContractAddresses []string
ContractAbi string

View File

@ -16,7 +16,7 @@ package tend
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var TendConfig = shared.SingleTransformerConfig{
var TendConfig = shared.TransformerConfig{
TransformerName: shared.TendLabel,
ContractAddresses: []string{shared.FlipperContractAddress},
ContractAbi: shared.FlipperABI,

View File

@ -35,7 +35,7 @@ var GenericTestLogs = []types.Log{{
BlockNumber: uint64(startingBlockNumber),
}}
var GenericTestConfig = shared.SingleTransformerConfig{
var GenericTestConfig = shared.TransformerConfig{
TransformerName: "generic-test-transformer",
ContractAddresses: []string{address},
ContractAbi: randomString(100),

View File

@ -2,7 +2,7 @@ package vat_flux
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var VatFluxConfig = shared.SingleTransformerConfig{
var VatFluxConfig = shared.TransformerConfig{
TransformerName: shared.VatFluxLabel,
ContractAddresses: []string{shared.VatContractAddress},
ContractAbi: shared.VatABI,

View File

@ -18,7 +18,7 @@ import (
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
)
var VatFoldConfig = shared.SingleTransformerConfig{
var VatFoldConfig = shared.TransformerConfig{
TransformerName: shared.VatFoldLabel,
ContractAddresses: []string{shared.VatContractAddress},
ContractAbi: shared.VatABI,

View File

@ -2,7 +2,7 @@ package vat_grab
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var VatGrabConfig = shared.SingleTransformerConfig{
var VatGrabConfig = shared.TransformerConfig{
TransformerName: shared.VatGrabLabel,
ContractAddresses: []string{shared.VatContractAddress},
ContractAbi: shared.VatABI,

View File

@ -16,7 +16,7 @@ package vat_heal
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var VatHealConfig = shared.SingleTransformerConfig{
var VatHealConfig = shared.TransformerConfig{
TransformerName: shared.VatHealLabel,
ContractAddresses: []string{shared.VatContractAddress},
ContractAbi: shared.VatABI,

View File

@ -18,7 +18,7 @@ import (
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
)
var VatInitConfig = shared.SingleTransformerConfig{
var VatInitConfig = shared.TransformerConfig{
TransformerName: shared.VatInitLabel,
ContractAddresses: []string{shared.VatContractAddress},
ContractAbi: shared.VatABI,

View File

@ -18,7 +18,7 @@ import (
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
)
var VatMoveConfig = shared.SingleTransformerConfig{
var VatMoveConfig = shared.TransformerConfig{
TransformerName: shared.VatMoveLabel,
ContractAddresses: []string{shared.VatContractAddress},
ContractAbi: shared.VatABI,

View File

@ -2,7 +2,7 @@ package vat_slip
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var VatSlipConfig = shared.SingleTransformerConfig{
var VatSlipConfig = shared.TransformerConfig{
TransformerName: shared.VatSlipLabel,
ContractAddresses: []string{shared.VatContractAddress},
ContractAbi: shared.VatABI,

View File

@ -2,7 +2,7 @@ package vat_toll
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var VatTollConfig = shared.SingleTransformerConfig{
var VatTollConfig = shared.TransformerConfig{
TransformerName: shared.VatTollLabel,
ContractAddresses: []string{shared.VatContractAddress},
ContractAbi: shared.VatABI,

View File

@ -2,7 +2,7 @@ package vat_tune
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var VatTuneConfig = shared.SingleTransformerConfig{
var VatTuneConfig = shared.TransformerConfig{
TransformerName: shared.VatTuneLabel,
ContractAddresses: []string{shared.VatContractAddress},
ContractAbi: shared.VatABI,

View File

@ -16,7 +16,7 @@ package vow_flog
import "github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
var VowFlogConfig = shared.SingleTransformerConfig{
var VowFlogConfig = shared.TransformerConfig{
TransformerName: shared.VowFlogLabel,
ContractAddresses: []string{shared.VowContractAddress},
ContractAbi: shared.VowABI,