You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow specifying indexed parameters to reduce the amount of events grabbed by an event log task
Specification
@app.on_(USDC.Transfer, to=app.signer)defreceive_task(log):
... # Do something on receiving USDC to the app signer account
Note that it should be pretty nice to be able to use un-converted objects to use filter with, but sometimes the name of indexed event arguments are not valid Python identifiers such as from, so an alternative method should be specified to work around that and potential name conflicts with other kwargs to this method e.g. start_block (perhaps a kwarg filter_args={...} that gets merged with the remaining **kwargs on app.on_)
Overview
Allow specifying indexed parameters to reduce the amount of events grabbed by an event log task
Specification
Note that it should be pretty nice to be able to use un-converted objects to use filter with, but sometimes the name of indexed event arguments are not valid Python identifiers such as
from
, so an alternative method should be specified to work around that and potential name conflicts with other kwargs to this method e.g.start_block
(perhaps a kwargfilter_args={...}
that gets merged with the remaining**kwargs
onapp.on_
)Dependencies
May require updates to Core first
#55
The text was updated successfully, but these errors were encountered: