mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-22 15:56:45 +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 {
|
func initTokenIndexFilter(cache *sync.Map, pub *pub.Pub) filter.Filter {
|
||||||
return filter.NewTokenIndexFilter(filter.TokenIndexFilterOpts{
|
return filter.NewTokenIndexFilter(filter.TokenIndexFilterOpts{
|
||||||
Cache: cache,
|
Cache: cache,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user