2019-01-28 22:52:47 +00:00
|
|
|
package transformers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/factories/storage"
|
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared/constants"
|
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/storage_diffs/maker"
|
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/storage_diffs/maker/pit"
|
2019-02-06 15:38:47 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/storage_diffs/maker/vat"
|
2019-02-11 21:11:36 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/storage_diffs/maker/vow"
|
2019-01-28 22:52:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func GetPitStorageTransformer() storage.Transformer {
|
|
|
|
return storage.Transformer{
|
|
|
|
Address: common.HexToAddress(constants.PitContractAddress()),
|
|
|
|
Mappings: &pit.PitMappings{StorageRepository: &maker.MakerStorageRepository{}},
|
|
|
|
Repository: &pit.PitStorageRepository{},
|
|
|
|
}
|
|
|
|
}
|
2019-02-06 15:38:47 +00:00
|
|
|
|
|
|
|
func GetVatStorageTransformer() storage.Transformer {
|
|
|
|
return storage.Transformer{
|
|
|
|
Address: common.HexToAddress(constants.VatContractAddress()),
|
|
|
|
Mappings: &vat.VatMappings{StorageRepository: &maker.MakerStorageRepository{}},
|
|
|
|
Repository: &vat.VatStorageRepository{},
|
|
|
|
}
|
|
|
|
}
|
2019-02-11 21:11:36 +00:00
|
|
|
|
|
|
|
func GetVowStorageTransformer() storage.Transformer {
|
|
|
|
return storage.Transformer{
|
|
|
|
Address: common.HexToAddress(constants.VowContractAddress()),
|
|
|
|
Mappings: &vow.VowMappings{StorageRepository: &maker.MakerStorageRepository{}},
|
|
|
|
Repository: &vow.VowStorageRepository{},
|
|
|
|
}
|
|
|
|
}
|