mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-22 07:46:46 +01:00
main: register approve filter
This commit is contained in:
parent
662f5fd1dd
commit
659e8f5547
@ -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,
|
||||
|
@ -65,6 +65,7 @@ func main() {
|
||||
initGasGiftFilter(jsPub),
|
||||
initTransferFilter(jsPub),
|
||||
initRegisterFilter(jsPub),
|
||||
initApproveFilter(jsPub),
|
||||
initTokenIndexFilter(cache, jsPub),
|
||||
},
|
||||
Logg: lo,
|
||||
|
Loading…
Reference in New Issue
Block a user