2019-01-24 20:41:30 +00:00
|
|
|
// VulcanizeDB
|
|
|
|
// Copyright © 2018 Vulcanize
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2018-08-07 15:51:34 +00:00
|
|
|
|
2018-08-07 20:17:29 +00:00
|
|
|
package transformers
|
2018-08-07 15:51:34 +00:00
|
|
|
|
|
|
|
import (
|
2018-08-31 15:37:02 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/bite"
|
2018-09-12 14:10:34 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/cat_file/chop_lump"
|
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/cat_file/flip"
|
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/cat_file/pit_vow"
|
2018-09-13 14:06:26 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/deal"
|
2018-09-11 19:01:45 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/dent"
|
2018-09-12 00:34:33 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/drip_drip"
|
2018-09-04 16:35:38 +00:00
|
|
|
ilk2 "github.com/vulcanize/vulcanizedb/pkg/transformers/drip_file/ilk"
|
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/drip_file/repo"
|
2018-09-18 20:48:48 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/drip_file/vow"
|
2018-10-09 14:04:07 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/factories"
|
2018-11-06 17:11:09 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/flap_kick"
|
2018-08-07 20:17:29 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/flip_kick"
|
2018-09-26 14:42:52 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/flop_kick"
|
2018-08-09 21:55:02 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/frob"
|
2018-09-05 18:51:18 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/pit_file/debt_ceiling"
|
2018-09-05 14:24:28 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/pit_file/ilk"
|
2018-08-14 21:59:41 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/price_feeds"
|
2018-08-09 21:55:02 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
|
2018-08-16 21:36:35 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/tend"
|
2018-10-17 15:53:06 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_flux"
|
2018-10-04 11:36:52 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_fold"
|
2018-10-08 21:39:57 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_grab"
|
2018-10-10 16:56:06 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_heal"
|
2018-09-04 16:35:38 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_init"
|
2018-10-12 14:13:13 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_move"
|
2018-10-15 20:04:17 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_slip"
|
2018-10-04 19:46:04 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_toll"
|
2018-10-04 21:49:09 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_tune"
|
2018-10-26 19:31:02 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vow_flog"
|
2018-08-07 15:51:34 +00:00
|
|
|
)
|
|
|
|
|
2018-11-30 16:28:52 +00:00
|
|
|
// Custom event transformers
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetBiteTransformer() factories.Transformer {
|
|
|
|
return factories.Transformer{
|
|
|
|
Config: bite.GetBiteConfig(),
|
2018-10-26 18:26:10 +00:00
|
|
|
Converter: &bite.BiteConverter{},
|
|
|
|
Repository: &bite.BiteRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-11-30 16:28:52 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetFlapKickTransformer() factories.Transformer {
|
|
|
|
return factories.Transformer{
|
|
|
|
Config: flap_kick.GetFlapKickConfig(),
|
2018-11-30 16:28:52 +00:00
|
|
|
Converter: &flap_kick.FlapKickConverter{},
|
|
|
|
Repository: &flap_kick.FlapKickRepository{},
|
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 12:31:25 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetFlipKickTransformer() factories.Transformer {
|
|
|
|
return factories.Transformer{
|
|
|
|
Config: flip_kick.GetFlipKickConfig(),
|
2018-11-30 16:28:52 +00:00
|
|
|
Converter: &flip_kick.FlipKickConverter{},
|
|
|
|
Repository: &flip_kick.FlipKickRepository{},
|
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-11-30 16:28:52 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetFrobTransformer() factories.Transformer {
|
|
|
|
return factories.Transformer{
|
|
|
|
Config: frob.GetFrobConfig(),
|
2018-11-30 16:28:52 +00:00
|
|
|
Converter: &frob.FrobConverter{},
|
|
|
|
Repository: &frob.FrobRepository{},
|
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-11-30 16:28:52 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetFlopKickTransformer() factories.Transformer {
|
|
|
|
return factories.Transformer{
|
|
|
|
Config: flop_kick.GetFlopKickConfig(),
|
2018-11-30 16:28:52 +00:00
|
|
|
Converter: &flop_kick.FlopKickConverter{},
|
|
|
|
Repository: &flop_kick.FlopKickRepository{},
|
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-11-30 16:28:52 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func getCustomEventTransformers() []factories.Transformer {
|
|
|
|
return []factories.Transformer{
|
|
|
|
GetBiteTransformer(),
|
|
|
|
GetFlapKickTransformer(),
|
|
|
|
GetFlipKickTransformer(),
|
|
|
|
GetFrobTransformer(),
|
|
|
|
GetFlopKickTransformer(),
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-11-30 16:28:52 +00:00
|
|
|
|
|
|
|
// LogNote transformers
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetCatFileChopLumpTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: chop_lump.GetCatFileChopLumpConfig(),
|
2018-10-25 15:16:21 +00:00
|
|
|
Converter: &chop_lump.CatFileChopLumpConverter{},
|
|
|
|
Repository: &chop_lump.CatFileChopLumpRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-25 15:16:21 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetCatFileFlipTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: flip.GetCatFileFlipConfig(),
|
2018-10-25 15:16:21 +00:00
|
|
|
Converter: &flip.CatFileFlipConverter{},
|
|
|
|
Repository: &flip.CatFileFlipRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-25 15:16:21 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetCatFilePitVowTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: pit_vow.GetCatFilePitVowConfig(),
|
2018-10-25 15:16:21 +00:00
|
|
|
Converter: &pit_vow.CatFilePitVowConverter{},
|
|
|
|
Repository: &pit_vow.CatFilePitVowRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-25 15:16:21 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetDealTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: deal.GetDealConfig(),
|
2018-10-26 12:31:25 +00:00
|
|
|
Converter: &deal.DealConverter{},
|
|
|
|
Repository: &deal.DealRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 12:31:25 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetDentTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: dent.GetDentConfig(),
|
2018-10-26 18:56:49 +00:00
|
|
|
Converter: &dent.DentConverter{},
|
|
|
|
Repository: &dent.DentRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 18:56:49 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetDripDripTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: drip_drip.GetDripDripConfig(),
|
2018-10-26 18:31:40 +00:00
|
|
|
Converter: &drip_drip.DripDripConverter{},
|
|
|
|
Repository: &drip_drip.DripDripRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 18:26:10 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetDripFileIlkTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: ilk2.GetDripFileIlkConfig(),
|
2018-10-18 09:52:19 +00:00
|
|
|
Converter: &ilk2.DripFileIlkConverter{},
|
|
|
|
Repository: &ilk2.DripFileIlkRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-18 09:52:19 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetDripFileRepoTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: repo.GetDripFileRepoConfig(),
|
2018-10-18 09:52:19 +00:00
|
|
|
Converter: &repo.DripFileRepoConverter{},
|
|
|
|
Repository: &repo.DripFileRepoRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-18 09:52:19 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetDripFileVowTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vow.GetDripFileVowConfig(),
|
2018-10-18 09:52:19 +00:00
|
|
|
Converter: &vow.DripFileVowConverter{},
|
|
|
|
Repository: &vow.DripFileVowRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-11-02 14:12:51 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetFlogTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vow_flog.GetVowFlogConfig(),
|
2018-10-26 19:31:02 +00:00
|
|
|
Converter: &vow_flog.VowFlogConverter{},
|
|
|
|
Repository: &vow_flog.VowFlogRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-11-02 14:13:10 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetPitFileDebtCeilingTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: debt_ceiling.GetDebtCeilingFileConfig(),
|
2018-10-16 14:55:24 +00:00
|
|
|
Converter: &debt_ceiling.PitFileDebtCeilingConverter{},
|
|
|
|
Repository: &debt_ceiling.PitFileDebtCeilingRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-16 14:55:24 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetPitFileIlkTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: ilk.GetIlkFileConfig(),
|
2018-10-16 09:53:13 +00:00
|
|
|
Converter: &ilk.PitFileIlkConverter{},
|
|
|
|
Repository: &ilk.PitFileIlkRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-16 09:53:13 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetPriceFeedTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: price_feeds.GetPriceFeedConfig(),
|
2018-10-25 18:25:36 +00:00
|
|
|
Converter: &price_feeds.PriceFeedConverter{},
|
|
|
|
Repository: &price_feeds.PriceFeedRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-25 18:25:36 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetTendTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: tend.GetTendConfig(),
|
2018-10-12 14:17:49 +00:00
|
|
|
Converter: &tend.TendConverter{},
|
|
|
|
Repository: &tend.TendRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-12 14:17:49 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetVatInitTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vat_init.GetVatInitConfig(),
|
2018-10-11 14:06:37 +00:00
|
|
|
Converter: &vat_init.VatInitConverter{},
|
2018-10-12 13:05:43 +00:00
|
|
|
Repository: &vat_init.VatInitRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 18:26:10 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetVatGrabTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vat_grab.GetVatGrabConfig(),
|
2018-10-26 16:02:39 +00:00
|
|
|
Converter: &vat_grab.VatGrabConverter{},
|
|
|
|
Repository: &vat_grab.VatGrabRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 18:26:10 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetVatFoldTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vat_fold.GetVatFoldConfig(),
|
2018-10-25 15:55:03 +00:00
|
|
|
Converter: &vat_fold.VatFoldConverter{},
|
|
|
|
Repository: &vat_fold.VatFoldRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 18:26:10 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetVatHealTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vat_heal.GetVatHealConfig(),
|
2018-10-26 16:40:24 +00:00
|
|
|
Converter: &vat_heal.VatHealConverter{},
|
|
|
|
Repository: &vat_heal.VatHealRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 18:26:10 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetVatMoveTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vat_move.GetVatMoveConfig(),
|
2018-10-11 14:06:37 +00:00
|
|
|
Converter: &vat_move.VatMoveConverter{},
|
2018-10-12 13:05:43 +00:00
|
|
|
Repository: &vat_move.VatMoveRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 18:26:10 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetVatSlipTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vat_slip.GetVatSlipConfig(),
|
2018-10-25 00:42:42 +00:00
|
|
|
Converter: &vat_slip.VatSlipConverter{},
|
|
|
|
Repository: &vat_slip.VatSlipRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 18:26:10 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetVatTollTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vat_toll.GetVatTollConfig(),
|
2018-10-25 00:21:14 +00:00
|
|
|
Converter: &vat_toll.VatTollConverter{},
|
|
|
|
Repository: &vat_toll.VatTollRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 18:26:10 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetVatTuneTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vat_tune.GetVatTuneConfig(),
|
2018-10-24 15:55:55 +00:00
|
|
|
Converter: &vat_tune.VatTuneConverter{},
|
|
|
|
Repository: &vat_tune.VatTuneRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-10-26 18:26:10 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func GetVatFluxTransformer() factories.LogNoteTransformer {
|
|
|
|
return factories.LogNoteTransformer{
|
|
|
|
Config: vat_flux.GetVatFluxConfig(),
|
2018-10-24 21:40:31 +00:00
|
|
|
Converter: &vat_flux.VatFluxConverter{},
|
|
|
|
Repository: &vat_flux.VatFluxRepository{},
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-11-30 16:28:52 +00:00
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
func getLogNoteTransformers() []factories.LogNoteTransformer {
|
|
|
|
return []factories.LogNoteTransformer{
|
|
|
|
GetCatFileChopLumpTransformer(),
|
|
|
|
GetCatFileFlipTransformer(),
|
|
|
|
GetCatFilePitVowTransformer(),
|
|
|
|
GetDealTransformer(),
|
|
|
|
GetDentTransformer(),
|
|
|
|
GetDripDripTransformer(),
|
|
|
|
GetDripFileIlkTransformer(),
|
|
|
|
GetDripFileRepoTransformer(),
|
|
|
|
GetDripFileVowTransformer(),
|
|
|
|
GetFlogTransformer(),
|
|
|
|
GetPitFileDebtCeilingTransformer(),
|
|
|
|
GetPitFileIlkTransformer(),
|
|
|
|
GetPriceFeedTransformer(),
|
|
|
|
GetTendTransformer(),
|
|
|
|
GetVatInitTransformer(),
|
|
|
|
GetVatGrabTransformer(),
|
|
|
|
GetVatFoldTransformer(),
|
|
|
|
GetVatHealTransformer(),
|
|
|
|
GetVatMoveTransformer(),
|
|
|
|
GetVatSlipTransformer(),
|
|
|
|
GetVatTollTransformer(),
|
|
|
|
GetVatTuneTransformer(),
|
|
|
|
GetVatFluxTransformer(),
|
2018-11-30 16:28:52 +00:00
|
|
|
}
|
2019-01-23 18:44:09 +00:00
|
|
|
}
|
2018-08-16 21:36:35 +00:00
|
|
|
|
2018-11-30 16:28:52 +00:00
|
|
|
// `TransformerInitializers` returns a list of functions, that given a db pointer
|
|
|
|
// will return a `shared.Transformer`
|
|
|
|
func TransformerInitializers() (initializers []shared.TransformerInitializer) {
|
2019-01-23 18:44:09 +00:00
|
|
|
for _, transformer := range getLogNoteTransformers() {
|
2018-11-30 16:28:52 +00:00
|
|
|
initializers = append(initializers, transformer.NewLogNoteTransformer)
|
|
|
|
}
|
|
|
|
|
2019-01-23 18:44:09 +00:00
|
|
|
for _, transformer := range getCustomEventTransformers() {
|
2018-11-30 16:28:52 +00:00
|
|
|
initializers = append(initializers, transformer.NewTransformer)
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|