diff --git a/cmd/service/filters.go b/cmd/service/filters.go index ff1c3b5..2a9041c 100644 --- a/cmd/service/filters.go +++ b/cmd/service/filters.go @@ -91,6 +91,13 @@ func initRegisterFilter(pub *pub.Pub) filter.Filter { }) } +func initApproveFilter(pub *pub.Pub) filter.Filter { + return filter.NewApproveFilter(filter.ApproveFilterOpts{ + Pub: pub, + Logg: lo, + }) +} + func initTokenIndexFilter(cache *sync.Map, pub *pub.Pub) filter.Filter { return filter.NewTokenIndexFilter(filter.TokenIndexFilterOpts{ Cache: cache, diff --git a/cmd/service/main.go b/cmd/service/main.go index ea82a5f..3a7dac8 100644 --- a/cmd/service/main.go +++ b/cmd/service/main.go @@ -65,6 +65,7 @@ func main() { initGasGiftFilter(jsPub), initTransferFilter(jsPub), initRegisterFilter(jsPub), + initApproveFilter(jsPub), initTokenIndexFilter(cache, jsPub), }, Logg: lo,