main: register approve filter

This commit is contained in:
Mohamed Sohail 2023-07-10 11:59:21 +08:00
parent 662f5fd1dd
commit 659e8f5547
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
2 changed files with 8 additions and 0 deletions

View File

@ -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 { func initTokenIndexFilter(cache *sync.Map, pub *pub.Pub) filter.Filter {
return filter.NewTokenIndexFilter(filter.TokenIndexFilterOpts{ return filter.NewTokenIndexFilter(filter.TokenIndexFilterOpts{
Cache: cache, Cache: cache,

View File

@ -65,6 +65,7 @@ func main() {
initGasGiftFilter(jsPub), initGasGiftFilter(jsPub),
initTransferFilter(jsPub), initTransferFilter(jsPub),
initRegisterFilter(jsPub), initRegisterFilter(jsPub),
initApproveFilter(jsPub),
initTokenIndexFilter(cache, jsPub), initTokenIndexFilter(cache, jsPub),
}, },
Logg: lo, Logg: lo,