Extract constants package

- Reduce clutter in the shared package
This commit is contained in:
Rob Mulholand
2018-11-08 13:08:59 -06:00
parent 8c5192f82f
commit 8c168ed332
87 changed files with 604 additions and 542 deletions
+5 -4
View File
@@ -16,13 +16,14 @@ package vat_fold
import (
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared/constants"
)
var VatFoldConfig = shared.TransformerConfig{
TransformerName: shared.VatFoldLabel,
ContractAddresses: []string{shared.VatContractAddress},
ContractAbi: shared.VatABI,
Topic: shared.VatFoldSignature,
TransformerName: constants.VatFoldLabel,
ContractAddresses: []string{constants.VatContractAddress},
ContractAbi: constants.VatABI,
Topic: constants.VatFoldSignature,
StartingBlockNumber: 0,
EndingBlockNumber: 10000000,
}
+2 -2
View File
@@ -20,7 +20,7 @@ import (
"errors"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared/constants"
)
type VatFoldConverter struct{}
@@ -62,7 +62,7 @@ func verifyLog(log types.Log) error {
}
sig := log.Topics[0].String()
if sig != shared.VatFoldSignature {
if sig != constants.VatFoldSignature {
return errors.New("log is not a Vat.fold event")
}