cic-chain-events/cmd/filters.go

24 lines
440 B
Go
Raw Normal View History

2023-01-05 12:45:09 +01:00
package main
import (
"github.com/grassrootseconomics/cic-chain-events/internal/filter"
)
func initAddressFilter() filter.Filter {
return filter.NewAddressFilter(filter.AddressFilterOpts{
Logg: lo,
})
}
func initTransferFilter() filter.Filter {
return filter.NewTransferFilter(filter.TransferFilterOpts{
Logg: lo,
})
}
2023-01-05 12:45:09 +01:00
func initNoopFilter() filter.Filter {
return filter.NewNoopFilter(filter.NoopFilterOpts{
Logg: lo,
})
}